AddConfigureServices

    0

    2

    Naser Rafinia

    The ConfigureServices method adds a service collection to the service container. The Add method accepts an IConfiguration object as a parameter and defines what layer the service will be added to. The configuration can be either an application or an environment configuration.

    Shortcut: conf.services

    Filename pattern: *.cs

    public static class ConfigureServices
    {
      public static IServiceCollection Add$1$Services(this IServiceCollection services, IConfiguration configuration)
      {
    
        return services;
      }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.