.Net Core Features. What is new?

As we already know that .Net Core is the successor of ASP.Net, the current version of .net core is 2.2.0-preview3 and the stable running version is 2.1 at the time of writing this article.

Just to recap, followings are the characteristics of .Net core.

  • .NET Core platform is open source, using MIT and Apache 2 licenses. .NET Core is a .NET Foundation project.
  • It is cross platform, runs on Windows, macOS & Linux operating system.
  • Runs with the same behavior on multiple architectures, including x64, x86, and ARM.
  • Easy use of command-line tools that be used for local development and in continuous-integration scenarios.
  • Flexible deployment.
  • Supported by Microsoft.
  • .NET Core is compatible with .NET Framework, Xamarin and Mono, via .NET Standard.

And in this article I will cover

  1. Top Features in .Net Core 2.1
  2. Top Features in .Net Core 2.2 Preview
  3. Blazor Sneak Peek

Top Features in .Net Core 2.1

Build Performance

The above graph is a report from a authenticate source and WebSmallCore meant  a small project and the WebLargeCore meant a professional enterprise application. But if the actual numbers would not make any sense as the configuration of the working hardware has not been taken into consideration. So rather than consider it as actual number, this graph would validate the ratio of the performance changes.

Global Tools

The idea initially came from NPM. The Nuget  Package contains many packages which might require time to time to use for developments. This is now introduced to use as global to be used across all the applications. So that the required packages need not to be installed every single time for different projects.

Running the following command will install the global tool.

And if i want to see the tools that are installed globally, we can run the following command.

This is basically a added console application.

Span<T> & Associates

According to Microsoft, when the original Asp.Net was created it was not up to the benchmark but when .Net Core has been started and they started to look at the community benchmark, lots of things ha been adapted. kestrel  came into the picture to provide cross platform support for .Net Core to run IIS, NgInx, Apache etc.

Span<T> is basically to manipulate a chunk of data without copying or allocating to a different memory block.

Asp.Net Core is really fast now. Here is the statistics below

Request handling/ Second

  • Node.js: 0.82M/ sec
  • Java Servlet: 2.55M/ sec
  • .Net Core: 6.97M/ sec

Source: Techempower Round 16

SignalR comes back from .Net Core 2.1

Now there is Azure SignalR Service. This adds real-time web functionalities with .Net Core & Azure.

It has

  • Fully Managed Service
  • Native SignalR Development

New feature for Identity UI Library & Scaffolding

  • Pre build UI for Identity
  • Override parts of the UI by Scaffolding specific page
  • Scaffold all the identity UI into an existing project or add it as a package.

Now the project files and other has been shrunk to only a file and that file just reference to a Nuget package. But even someone forget to add Identity before, they can  add that later in the project without hassle.

Security & Privacy

  • HTTPS enabled by default
  • HTTPS redirection
  • HTTP Strict Transport Security(HSTS)
  • Server Name Indication (SNI)

GDPR

  • Cookie consent
  • Downloading & deleting personal data
  • Extensible for encrypting identity data

The middle ware has been configured to handle all of this. And .Net identify has stuff configured to handle those.

.Net Framework 2.2.0-preview3 release

  • Template has been updated to Bootstrap 4 & Angular 6
  • HTTP/2
  • In-Process Hosting of IIS
  • End Point ROuting
  • SignalR Java Client
  • Improvements of Web API
  • Health Checks

This blog is a summary of the features released on .Net Core new release. But the specification will be described on each topic later blogs

Leave a Reply

Your email address will not be published. Required fields are marked *