Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

For ASP.

NET Core Online Training : +91-999 123 502

Introduction to ASP.NET Core


Shailendra Chauhan
Microsoft MVP, Founder & CEO – Dot Net Tricks
For ASP.NET Core Online Training : +91-999 123 502

Agenda
• Evolution of ASP.NET Core
• ASP.NET Core Architecture
• Understanding ASP.NET Core
• ASP.NET Core Performance Benchmarks
• ASP.NET Core MVC
• ASP.NET Core Application Model
• ASP.NET and ASP.NET Core Request Processing
• ASP.NET MVC5 vs. ASP.NET Core
For ASP.NET Core Online Training : +91-999 123 502

Evolution of ASP.NET Core


Active Server ASP.NET
Pages ASP.NET MVC ASP.NET
(Classic ASP) Web Forms 1/2/3/4/5 MVC 6
1/2/3.5/4 Core MVC
/4.5/4.6/4.7 1/1.1/2/2.1/
ASP.NET 2.2/3.0/3.1
Web Pages
1/2/3
Unified
MVC, Web
ASP.NET API and
Web API Web Pages
1/2
For ASP.NET Core Online Training : +91-999 123 502

ASP.NET Core 2.2 Architecture

.NET Framework 4.6+ .NET Core 2.2

Runtime
Components Compilers NuGet packages
Next gen JIT (RyuJIT) Languages innovation .NET Core Libraries
SIMD .NET Compiler Platform .NET Framework 4.6 Libraries
For ASP.NET Core Online Training : +91-999 123 502

ASP.NET Core 3.x Architecture

.NET Framework 4.6+ .NET Core 3.x

Runtime
Components Compilers NuGet packages
Next gen JIT (RyuJIT) Languages innovation .NET Core Libraries
SIMD .NET Compiler Platform .NET Framework 4.6 Libraries
For ASP.NET Core Online Training : +91-999 123 502

Understanding ASP.NET Core


• An open-source and cross-platform framework
• Runs on .NET Core or on the full .NET Framework till ASP.NET Core 2.2
• A unified framework for building web UI and web APIs
• Built-in dependency injection
• New light-weight and modular HTTP request pipeline
• Ships entirely as NuGet packages
• Built-In support for SPA
• Integration with modern client-side frameworks like Angular, React, Vue
For ASP.NET Core Online Training : +91-999 123 502

Understanding ASP.NET Core


• Build modern cloud based applications, such as :
• Web apps
• Mobile backends
• IoT Apps
• Machine Learning and AI
• Serve 2300% more requests per second as compared to ASP.NET 4.6
For ASP.NET Core Online Training : +91-999 123 502

ASP.NET Core Performance Benchmarks

Source : https://goo.gl/pgjPfm
For ASP.NET Core Online Training : +91-999 123 502

ASP.NET Core Anatomy


• Everything starts from Program.cs, Main Method
• ASP.NET Core apps require a Startup class
• No more Global.asax
• No more Web.Config requirement
• No more modules and handlers
• Cross-platform Kestrel web server
For ASP.NET Core Online Training : +91-999 123 502

ASP.NET Core Anatomy


For ASP.NET Core Online Training : +91-999 123 502

ASP.NET Core Application Model


For ASP.NET Core Online Training : +91-999 123 502

ASP.NET MVC5 vs. ASP.NET Core MVC


• Html Helpers • Tag Helpers and Html Helpers
• Follows WebForms & Razor Syntaxes • Follows only Razor Syntax
• Partial Views • Partial Views & View Components
• Type : Web Application • Type : Console Application
• Global.asax and Web.config • startup.cs and appsettings.json
• Modules and Handlers • Middleware
• Hosted on IIS • Cross-platform Kestrel web server
• Runs only with Windows • Runs with Mac, Linux & Windows
For ASP.NET Core Online Training : +91-999 123 502

ASP.NET and ASP.NET Core Request Processing


For ASP.NET Core Online Training : +91-999 123 502

ASP.NET Core Request Processing


For ASP.NET Core Online Training : +91-999 123 502

ASP.NET MVC5 vs. ASP.NET Core MVC


• Html Helpers • Tag Helpers and Html Helpers
• Follows WebForms & Razor Syntaxes • Follows only Razor Syntax
• Partial Views • Partial Views & View Components
• Type : Web Application • Type : Console Application
• Global.asax and Web.config • startup.cs and appsettings.json
• Modules and Handlers • Middleware
• Hosted on IIS • Cross-platform Kestrel web server
• Runs only with Windows • Runs with Mac, Linux & Windows

You might also like