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! Sprin...
Search
Christian Nagel
February 22, 2017
Programming
0
340
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
120
C# 7.0 - What's New (Show IT, Bratislava, 2017)
christiannagel
0
190
Creating Desktop Apps with UWP (Show IT, Bratislava 2017)
christiannagel
0
92
C# 7.0 - What's New (G2B TechEd Brno, 2017)
christiannagel
0
130
Creating Desktop Apps with UWP (G2B TechEd, Brno 2017)
christiannagel
0
100
WPF 4.5 - Die Neuerungen im Überblick
christiannagel
0
160
Async mit C# 5
christiannagel
1
150
Windows Store Apps mit C#
christiannagel
0
77
Tiles, Toasts & Notifications
christiannagel
0
100
Other Decks in Programming
See All in Programming
CSC305 Lecture 03
javiergs
PRO
0
240
なぜGoのジェネリクスはこの形なのか? Featherweight Goが明かす設計の核心
ryotaros
7
1.1k
登壇は dynamic! な営みである / speech is dynamic
da1chi
0
270
2分台で1500examples完走!爆速CIを支える環境構築術 - Kaigi on Rails 2025
falcon8823
3
3.5k
スマホから Youtube Shortsを見られないようにする
lemolatoon
16
16k
GitHub Actions × AWS OIDC連携の仕組みと経緯を理解する
ota1022
0
250
オープンソースソフトウェアへの解像度🔬
utam0k
12
2.4k
なぜあの開発者はDevRelに伴走し続けるのか / Why Does That Developer Keep Running Alongside DevRel?
nrslib
3
390
CSC509 Lecture 04
javiergs
PRO
0
300
CSC509 Lecture 01
javiergs
PRO
1
440
GraphQL×Railsアプリのデータベース負荷分散 - 月間3,000万人利用サービスを無停止で
koxya
1
1.2k
Your Perfect Project Setup for Angular @BASTA! 2025 in Mainz
manfredsteyer
PRO
0
150
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.9k
Designing Experiences People Love
moore
142
24k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.7k
BBQ
matthewcrist
89
9.8k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.7k
Code Reviewing Like a Champion
maltzj
525
40k
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