Skip to content

ConfigureServices

7 posts3 contributors

+ FollowBe the first to follow this
Write about it

Articles about ConfigureServices

  1. Understanding Dependency Injection in ASP.NET Core Web API

    Dependency Injection (DI) is a design pattern used to achieve Inversion of Control (IoC) between classes and their dependencies. In ASP.NET Core, DI is a fundamental part of the framework, making it easier to manage dependencies and improve the modularity, testability, and maintainability of your applications.

    Sardar Mudassar Ali KhanSardar Mudassar Ali Khan7,0161,000
  2. How to enable CORS in .NET 7

    Enabling CORS (Cross-Origin Resource Sharing) in .NET 7 involves configuring your application to allow cross-origin requests. This is important when your web application hosted on one domain needs to make requests to a server hosted on a different domain. CORS helps ensure that these cross-origin requests are safe and authorized.

    Rahul SinghRahul Singh18,5061,000
  3. Implementing Health Checks to Monitor Status and Health in ASP.NET Core

    ASP.NET Core is a great way to monitor the status and health of your API services. Health checks allow you to periodically test the different components of your application and ensure they are functioning properly. Here's a complete example of how to implement health checks in an ASP.NET Core application.

    Sardar Mudassar Ali KhanSardar Mudassar Ali Khan11,1611,000
  4. Implementing Model Binding, Handling Binding Failures, and Utilizing a Custom Model Binder in ASP.NET

    In ASP.NET, model binding simplifies the process of mapping incoming HTTP request data to the parameters of controller actions or methods. This process ensures that the data provided by the user is appropriately converted and validated before being used by the application. However, there are cases when the default model binding behavior may not be sufficient. In such scenarios, custom model binders can be created to handle specific data types or complex binding logic.

    Sardar Mudassar Ali KhanSardar Mudassar Ali Khan9,3901,000
  5. Resolving CORS Origin Using Custom Middle ware in ASP.Net Web API

    In ASP.NET Core, middleware is a component or piece of software that sits in the request-response pipeline. Middleware is used to handle or modify incoming HTTP requests and outgoing HTTP responses. It provides a way to add custom logic and behaviors to the application's processing flow.

    Sardar Mudassar Ali KhanSardar Mudassar Ali Khan5,9651,000
  6. Adding Roles to Registration Razor Page in ASP.NET Core

    In this article, we will be creating different roles for our application.

    Abhishek YadavAbhishek Yadav64,0681,000
  7. Creating a Model and Database in ASP.NET Core Razor Pages Using Entity Framework Core

    In this article, you will learn how to create model and DbContext objects in ASP.Net Core razor pages using entity framework along with migrations.

    Abhishek YadavAbhishek Yadav49,3681,000