.NET Core and DNX
Chrisitan Horsdal Horsdal Consult @chr_horsdal
.NET Core and DNX Chrisitan Horsdal Horsdal Consult @chr_horsdal - - PowerPoint PPT Presentation
.NET Core and DNX Chrisitan Horsdal Horsdal Consult @chr_horsdal .NET Core Middleware DNX X-Plat About me Christian Horsdal Independent Consultant www.horsdal-consult.dk c.horsdal@gmail.com @chr_horsdal ASP.NET 5 Everything changes
Chrisitan Horsdal Horsdal Consult @chr_horsdal
About me
Christian Horsdal Independent Consultant www.horsdal-consult.dk c.horsdal@gmail.com @chr_horsdal
ASP.NET 5
Everything changes
ASP.NET Today
IIS .NET BCL ASP.NET ASP.NET MVC ASP.NET Web API HTTP Modules ASP.NET WebForms HTTP Handlers Request pipeline HTTP Context et al. Caching Session State
ASP.NET – things not in 5
IIS .NET BCL ASP.NET ASP.NET MVC ASP.NET Web API HTTP Modules ASP.NET WebForms HTTP Handlers Request pipeline HTTP Context et al. Caching Session State
ASP.NET – and things changed in 5
IIS .NET BCL ASP.NET ASP.NET MVC ASP.NET Web API HTTP Modules ASP.NET WebForms HTTP Handlers Request pipeline HTTP Context Caching Session State
Highlights of ASP.NET 5
Why Do I Care?
Why Do I Care?
Why Do I Care?
Roadmap
Milestone Release week Beta6 27 Jul 2015 Beta7 2 Sep 2015 Beta8 5 Oct 2015: Feature complete RC1 Nov 2015: Stabilized 1.0.0 Q1 2016 > 1.0.0 Maybe Q3 2016: VB.NET, SignalR, WebPages
13
AKA: Cloud Optimized Framework
BIN Deploy
16
Source code dnu publish Server with DNX xcopy
Side-by-side deployment
17
App 1 .NETCore v. X App 2 .NETCore v. Y App 3 .NETCore v. Z
What In and What’s Out?
18
No System.Web
What’s In and What’s Out
20
Command line fun: DNX, DNU, DNVM
21
Why Command Line???
22
DNX Runtime
Frameworks (MVC, WebAPI, 3rd party) & OWIN middleware DNX CoreCLR FullCLR Mono
DNX
Demo – YO, DNVM, DNU and DNX
project.json
{ "dependencies": { "Microsoft.AspNet.Server.IIS" : "1.0.0-alpha2", "Microsoft.AspNet.Server.WebListener" : "1.0.0- alpha2", "Microsoft.AspNet.Owin": "1.0.0-alpha2", "Nancy" : “1.2.0" }, "configurations" : { “dnx451" : { }, “dnxcore50" : { } } }
project.json
DOES NOT LIST ALL FILES IN PROJECT
DNX, DNU, DNVM
Visual Studio
atom-omnisharp
ASP.NET 5 Pipeline
ASP.NET 5: Pipeline
30
Kestrel Throttling Middleware OAuth Middleware Application
Middleware
31
ASP.NET 5: Pipeline
32
Kestrel Throttling Middleware OAuth Middleware Application
OWIN: The Standard
33
OWIN: Middleware Ecosystem
34
OWIN Middleware - As lambda
35
app.UseOwin(buildFunc => buildFunc(next => async ctx => { var stopWatch = new Stopwatch(); stopWatch.Start(); await next(ctx); WriteLine("Action execution time: " + stopWatch.ElapsedMilliseconds); }));
Cross Platform
DEMO
DNX, MVC, WINDOWS, LINUX