Presentation is loading. Please wait.

Presentation is loading. Please wait.

MVC in ASP.NET Core: The new kid on the block

Similar presentations


Presentation on theme: "MVC in ASP.NET Core: The new kid on the block"— Presentation transcript:

1 MVC in ASP.NET Core: The new kid on the block
@FanieReynders

2 A little bit about me @FanieReynders

3 New kids on the block? Not quite

4 ASP.NET Core overview Modular Quicker dev cycle
Seamless on-prem to cloud transition *Your* favorite editors and tools OSS with contributions X-plat Fast Re-designed from the ground up Open source & cross platform , modern cloud-based apps with .NET Modular, side-by-side Faster releases, everything NuGet Everything has cloud mindset No dependency on VS, use any txt editor – code, sublime, vim, etc. Completely open source & contributions open Works on Linux, Mac & Windows Super fast, performance first (RC1)

5 How does it all fit together?
Web Forms Web Pages MVC Web API MVC ASP.NET 4.6 System.Web ASP.NET Core 1.0 .NET Execution Environment (DNX) .NET Framework 4.6 Full .NET Framework .NET Core 1.0 Modular libraries & runtime Optimized for server & cloud Old (left): Full .NET for Windows only, monolithic ASP.NET 4.x – Web framework (System.Web) Application frameworks – web forms, web pages, mvc, web api, signalr etc New (right): .NET Core – modular, componentized, server & cloud optimized DNX is runtime host – deprecated: new .NET CLI, bridges .NET 4.6 & .NET Core ASP.NET Core – modular web framework, runs on DNX New ASP.NET Frameworks (MVC) ASP.NET Version reboot – One ASP.NET Core 1.0

6 Previous ASP.NET frameworks
Web Pages MVC Web API Razor HTML Helpers HTML Helpers Controllers Controllers Actions Actions Filters Filters Why re-design? Separate components that does the (same) thing No sharing of code Needed more unification, avoid duplication Less confusing Model Binding Model Binding DI DI

7 One ASP.NET Hosting Middleware DI Configuration Logging
Application frameworks Hosting: New managed server “Kestrel” Startup – configuring pipeline Middleware out-of-the-box Routing, auth, static files, diagnostics, error handling, session, CORS, localization *YOUR* custom middleware Dependency injection first class citizen, IoC container boots itself Bring your own IoC New Configuration model – lightweight, multiple file types (json, ini) New Logging infrastructure App frameworks – MVC, SignalR, Identity

8 MVC + Web API + Web Pages = MVC for ASP.NET Core
One MVC MVC + Web API + Web Pages = MVC for ASP.NET Core

9 MVC for ASP.NET Core features
Unified concepts - Web UI & APIs Build on ASP.NET Core - supports .NET Core IIS & Self hosted Integrated DI View Components Tag Helpers Async & C# 6 Unified concepts, remove duplication, complexity & confusion Supports Full .NET & .NET Core + x-plat IIS & Self hosted (Kestrel) DI is integrated thru-out stack – middleware, filters, controllers & views View Components, Tag Helpers Everything async-able, C# 6 support Backwards compatible with Web API 2 – WebAPI compat shim.

10 DEMO TIME!

11 Thank you! @FanieReynders http://reynders.co http://get.asp.net


Download ppt "MVC in ASP.NET Core: The new kid on the block"

Similar presentations


Ads by Google