Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ASP.NET Core und ASP.NET Core MVC (BASTA! Spring 2017)
Search
Christian Nagel
February 22, 2017
Programming
0
210
ASP.NET Core und ASP.NET Core MVC (BASTA! Spring 2017)
Introduction to ASP.NET Core and ASP.NET Core MVC
Christian Nagel
February 22, 2017
Tweet
Share
More Decks by Christian Nagel
See All by Christian Nagel
C# 7.0 - Neuheiten im Detail (BASTA! Spring 2017)
christiannagel
0
110
C# 7.0 - What's New (Show IT, Bratislava, 2017)
christiannagel
0
180
Creating Desktop Apps with UWP (Show IT, Bratislava 2017)
christiannagel
0
73
C# 7.0 - What's New (G2B TechEd Brno, 2017)
christiannagel
0
97
Creating Desktop Apps with UWP (G2B TechEd, Brno 2017)
christiannagel
0
89
WPF 4.5 - Die Neuerungen im Überblick
christiannagel
0
150
Async mit C# 5
christiannagel
1
130
Windows Store Apps mit C#
christiannagel
0
52
Tiles, Toasts & Notifications
christiannagel
0
64
Other Decks in Programming
See All in Programming
Docker ハンズオン / docker-hands-on
suzukihoge
51
16k
Data Contracts In Practice With Debezium and Apache Flink (Kafka Summit London)
gunnarmorling
2
270
Deep Dive 大規模システムアーキテクチャ/開発組織エンジニアリング / Deep Dive Large-Scale System Architecture, Development Organization Engineering
nrslib
15
2.9k
Crafting a Own PHP - ウキウキ手作りミニマリストPHP
uzulla
4
1.1k
Parallel Socket Communication in Swift
s_shimotori
0
210
オブジェクト指向は必要なのか / Is object-oriented needed?
kishida
27
18k
Building a Smaller App Binary
kateinoigakukun
2
200
ファイル先頭の use の意味、説明できますか? 〜PHP の namespace と autoloading の関係を正しく理解しよう〜 / namespace and autoloading in php
okashoi
2
470
ドメイン・ファーストで考える問題解決に役立つモデル設計 / Domain First Model Design
suzushin54
1
960
object-oriented-conference-2024
fuwasegu
6
1.4k
ISUCONってなんだか難しそう……!!でも、初めてのISUCONにPHPで挑戦してきました!
kotomin_m
1
300
WasmOS: Wasmを実行する自作Microkernel
riru
0
370
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
57
14k
10 Git Anti Patterns You Should be Aware of
lemiorhan
644
57k
From Idea to $5000 a Month in 5 Months
shpigford
376
45k
Testing 201, or: Great Expectations
jmmastey
27
6.3k
Fantastic passwords and where to find them - at NoRuKo
philnash
35
2.4k
Building Flexible Design Systems
yeseniaperezcruz
317
37k
Bash Introduction
62gerente
604
210k
Practical Orchestrator
shlominoach
180
9.7k
Product Roadmaps are Hard
iamctodd
43
9.6k
Thoughts on Productivity
jonyablonski
57
3.8k
Web Components: a chance to create the future
zenorocha
304
41k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3k
Transcript
ASP.NET Core und ASP.NET MVC Core Christian Nagel csharp.christiannagel.com @christiannagel
Goals • Warum ASP.NET Core? • Foundations ASP.NET Core •
Intro ASP.NET MVC Core • Neue Tools (csproj)
Non-Goals • Alle Features von ASP.NET Core / MVC •
No Crashes (Visual Studio 2017 RC)
Agenda – 3 Schritte Why? What? ASP.NET Core ASP.NET MVC
Christian Nagel • csharp.christiannagel.com • www.cninnovation.com • @christiannagel
WHY? WHAT?
Why? • Reduce Overhead • Modern Architecture • Multi-Platform
What? • .NET Core • .NET Standard • ASP.NET Core
.NET Core • New Implementation of .NET • Multi-Platform •
Lightweight, Modern Patterns • Long Term Support (LTS, 1.0.3) • Current Releases (1.1), new Features
.NET Standard • Create Libraries that can be used between
different .NET Implementations • Replaces Portable Library
ASP.NET Core • New Web Framework • Fast, Modern Patterns
• Basis: .NET Core oder .NET Framework
ASP.NET CORE
Topics • Startup • Simple Routing • Dependency Injection •
Configuration • Logging
Startup
Startup • Build a WebHost (WebHostBuilder) • Configure Services (Startup)
• Configure Request Pipeline (IApplicationBuilder) • HTTP Request & Response (HttpContext)
Simple Routing
Simple Routing • Define simple routes • Map with a
predicate
Dependency Injection
Dependency Injection • Microsoft.Extensions.DependencyInjection • Container Registration – Transient/Scoped/Singleton •
Injection in Controller/Service/View
Configuration • Überfrachtetes web.config • Production/Staging?
Configuration
Diagnostics / Logging • Trace? TraceSource? Nlog? • Switch Logging
Technology?
Diagnostics / Logging • ILoggerFactory • ILogger
What you’ve seen… • Easy to use • Moderne Patterns
• Flexible Architektur
ASP.NET MVC CORE
Topics • Template Generated Code • Tag Helpers • View
Components
dotnet new • DependencyInjection • Configuration • Logging • Razor
• Logging
Tag Helpers • HTML Helpers werden auch unterstützt • Tag
Helpers mit HTML Syntax • Vergleich mit Angular • Mixed C#/HTML wird reduziert
View Components • Functionality independent of Controller • .NET Core
1.1: – Tag Helpers
What you’ve seen… • Ähnlich zu ASP.NET MVC 5.x •
Zusätzliche Features • Basis ASP.NET Core
Summary • Multi Platform • Modern Patterns
Questions?
More Information • https://csharp.christiannagel.com • https://dot.net • https://github.com/ProfessionalCSharp • https://github.com/aspnet
Thank you!
Images Copyright • Problems © 123elis • Construction Worker ©
Bogdanhoda • Sky Train © Szefei • Injection © Mabe123 • Control Panel © Antonmatveev • Telescope © Rudchenko • Modern Building © Renkshot • Plastic Blocks © Rayisa Nalivayko • Eye scanning © Saniphoto • Problem Solving Series © Pablo631 • Frankfurt © Rudi1976 http://www.dreamstime.com