// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { AppConfigurator.Configure(services, Configuration); services.AddSingleton <IClientRegistry, DefaultClientRegistry>(); services.Configure <ClientListOptions>(Configuration.GetSection("Clients")); }
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { AppConfigurator.Configure(app, env, AutofacContainer); }