Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
ASP.NET Core und ASP.NET Core MVC (BASTA! Spring 2017)
Christian Nagel
February 22, 2017
Programming
0
160
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
99
C# 7.0 - What's New (Show IT, Bratislava, 2017)
christiannagel
0
170
Creating Desktop Apps with UWP (Show IT, Bratislava 2017)
christiannagel
0
67
C# 7.0 - What's New (G2B TechEd Brno, 2017)
christiannagel
0
84
Creating Desktop Apps with UWP (G2B TechEd, Brno 2017)
christiannagel
0
78
WPF 4.5 - Die Neuerungen im Überblick
christiannagel
0
120
Async mit C# 5
christiannagel
0
130
Windows Store Apps mit C#
christiannagel
0
48
Tiles, Toasts & Notifications
christiannagel
0
40
Other Decks in Programming
See All in Programming
Micro Frontends with Module Federation @MicroFrontend Summit 2023
manfredsteyer
PRO
0
600
domain層のモジュール化 / MoT TechTalk #15
mot_techtalk
0
130
23年のJavaトレンドは?Quarkusで理解するコンテナネイティブJava
tatsuya1bm
1
130
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
42k
低レイヤーから始める GUI
fadis
18
9.4k
Swift Concurrency in GoodNotes
inamiy
4
1.4k
コンピュータビジョンセミナー2 / computer_vision_seminar_libSGM
fixstars
0
320
An Advanced Introduction to R
nicetak
0
1.8k
Remote SSHで行うVS Codeリモートホスト開発とトラブルシューティング
smt7174
1
510
Refactor with using `available` and `deprecated`
417_72ki
3
380
Ruby Pattern Matching
bkuhlmann
0
610
jq at the Shortcuts
cockscomb
1
440
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
657
120k
Producing Creativity
orderedlist
PRO
335
38k
Bash Introduction
62gerente
601
210k
Principles of Awesome APIs and How to Build Them.
keavy
117
15k
Web development in the modern age
philhawksworth
197
9.6k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1.1M
Documentation Writing (for coders)
carmenintech
51
2.9k
Designing with Data
zakiwarfel
91
4.2k
A designer walks into a library…
pauljervisheath
199
16k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
7
580
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
32
6.7k
Become a Pro
speakerdeck
PRO
6
3.2k
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