ASP.NET Core

Program.cs in ASP.NET Core

In this article, we will look at the role of asp.net core program.cs in more detail. It is the entry point of our app, where we configure the Web host. The program class configures the application infrastructure like Web host, logging, Dependency injection container, IIS integration, etc. It is created, configured, built using the createdefaultbuilder method of the Main method in the program class.

Program.cs in ASP.NET Core Read More »

How to Download and Install .NET / .NET Core

This tutorial will teach us how to download and install .NET (or .NET Core or Dot Net Core). The downloads consist of three parts the SDK, runtime & Hosting bundle. Learn the difference between the SDK, Runtime & Hosting bundle. We have also listed dependencies that you must install before. Also the list of supported OS. ASP.NET Core is not a separate download. It is installed as part of the .NET core.

How to Download and Install .NET / .NET Core Read More »

Dependency Injection Lifetime: Transient, Singleton & Scoped

Understanding the lifetime of the services created using the Dependency injection is very essential, before starting to using them. Creating services without understanding the difference between Transient, Singleton & Scoped lifetime can result in application behaving erratically. When a service requests another service via DI, knowing whether it receives the new instance or an already created instance is very important. Hence correctly specifying the lifetime while registering the service are utmost important.

Dependency Injection Lifetime: Transient, Singleton & Scoped Read More »

Scroll to Top