예제 #1
0
        // 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"));
        }
예제 #2
0
 public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
 {
     AppConfigurator.Configure(app, env, AutofacContainer);
 }