What is the difference between Run() and Use() methods in IApplicationBuilder?

* Use() method: Used to create a simple middleware which can be "chained" to other functions over th ...


What is the difference between Response.Redirect() and Server.Transfer() ?

* Response.Redirect() redirects browser to another page, history is updated, trip back to client whe ...


How do you handle errors Globally in ASP.NET Core?

We can make use of the built-in UseExceptionHandler() middleware for catching Global Errors in ASP.N ...


How do you design a strongly-typed class for a configuration?

To create a strongly-typed class for binding to a configuration section: * The property names and ...


How can you bind a configuration section to an object?

A Configuration section can be bound to a strictly-typed class object in two ways: * use Configurat ...


When to use IOptionsMonitor?

IOptionsMonitor returns the "CurrentValue" of the options along with notifications when the options ...


What is a Named Option?

Named options are when a single class is to be used for creating different objects of configurations ...


What are the differences between IOptions and IOptionsSnapshot?

__IOptions:__ * Options configured in IOptions are registered as SingletonServices * Can be inject ...


What is the difference between ConfigureServices and Configure methods?

* __ConfigureServices()__ and __Configure()__ methods are used to register services and configure co ...


How do you configure a middleware?

A logical component (a class or a method) can be configured into a middleware by registering it unde ...


What is a middleware?

A middleware is a logical component that sits on the path of a request-response pipeline and is invo ...


What is the difference between a Transient and a Scoped service?

A __Transient__ service instance is created every time a calling method or dependent class requests ...


What is the difference between a Singleton and a Transient service?

A Singleton service instance once created is reused for the entire application lifetime, whereas a T ...


What is a Scoped service?

A scoped service instance is created only once within a request scope and is reused for all calls wi ...


What is a Transient service?

A transient service instance is created each time a calling component method or dependent class requ ...


We use cookies to provide you with a great user experience, analyze traffic and serve targeted promotions.   Learn More   Accept