Quick Introduction To Asp.Net Core And It’s Features

Krishna KV
 
Team Leader, Aspire Systems
January 10, 2017
 
Rate this article
 
Views
6836

In this article we can have a quick introduction of asp.net core 1.0 and can have an overview of its features. In my subsequent articles, I’ll brief you with examples.

What is Asp.net Core 1.0

Asp.net core is a redesign of Asp.net. It is open source platform to develop the modern internet application. It can execute on the .Net core or full .Net framework. It can be deployed  in cloud or on premises. It no longer uses the System.Web.dll.

clip_image002

.Net Core

· .Net is a subset of the .Net Framework

· Modular based, components are distributed via NuGet

· Cross platform it can deployed and published in MAC, windows and Linux

· The apps can be updated independently

· Open Source

· Performance improvement

Asp.net Features

· Hosting

· Middleware

· Dependency Injection

· StartUp.cs is used to declare the services as a dependency.

· Configuration

· Frameworks

· Unified Framework (MVC and WEBAPI unified into a single package)

Hosting

Asp.net core includes the web server Kestrel. The kestrel is a cross platform web server and it runs on the top of libuv, cross platform asynchronous I/O library. The kestrel is good to run when the application used for the internal project, else it is recommend to use the reverse proxy with the some other web server like IIS, Apache, etc. The request helps us in security and the handle the traffic from internet. Kestrel is new and doesn’t have full complement of defences against attacks

clip_image003

clip_image005

MiddleWare

The components assembled into application pipeline to handle the request and response. The request delegates use to build the request pipeline.

clip_image007

clip_image009

The request delegates configuration using three extension method such as Run, Map and Use, which is the interface called IApplicationBuilder which is executed in the startUp.cs and uses the method Configure.

The request can be specified through an anonymous method or through a custom Class. The custom class can be called as middleware or middleware component. The middleware component in the request pipeline is responsible for invoking the next component in the pipeline.

Run Method

The run method will return to the http response immediately without calling the next pipeline. It is recommend using the last http pipeline

Use Method

It will insert the next middleware into the pipeline which requires you to call the next middleware by calling the method next.Invoke(context).

Map Method

The Map extension method is used to match request delegates based on a request’s path. It accepts a path and function that configure a separate middleware pipeline.

Built-in Middleware

Authentication, Cors, Response Caching, Response Compression, Routing, Session, Static Files, URL Rewriting

Category : Windows

Author Info

Krishna KV
 
Team Leader, Aspire Systems
 
Rate this article
 
Krishna K.V has been working in IT Industry for over 7+ years. He holds a Master Degree in Information Technology. He is more interested to learn and share new technologies, ...read more
 

Leave a comment