ASP.NET Core

ASP.NET Core Endpoint Routing

EndPoint Routing is the new way to implement the Routing in ASP.NET Core. It splits up the old routing middleware into two separate middleware’s and also decouples the MVC from the Routing Middleware. Learn what is Endpoint is and how to register these routing middleware’s using the UseRouting & UseEndpoints methods in the Configure method of the startup class.

ASP.NET Core Endpoint Routing Read More »

Reading the configuration File in ASP.NET Core

In this tutorial, let us learn how to read the configuration file using the ASP.NET Configuration Service. The ASP.NET core configuration systems allow us to add configurations from various sources using providers. It then converts the configurations into a key/value pair. We inject the configuration service into a class and then use the GetSection, Value, & GetValue methods to read the configurations. Also, learn how to parse the types. How to bind the configurations to a class instance. Learn how to use the Options pattern & IOptionsSnapshot to create a strongly-typed options object. Read configurations stored as arrays, read from INI, XML files, command-line arguments, etc.

Reading the configuration File in ASP.NET Core Read More »

Scroll to Top