Esempio n. 1
0
 protected override HoustonAspNetCoreConfiguration Configure(IPluginContext <OnlineApiHoustonProperties> context, IHoustonWebHostBuilder configurationBuilder)
 {
     if (configurator == null)
     {
         configurator = new HoustonSettingsConfigurator(context.GetVostok().Log, context.Properties);
     }
     return(configurationBuilder.ConfigureWebHost(x =>
     {
         x.UseStartup <Startup>();
         x.ConfigureServices(serviceCollection => serviceCollection.AddSingleton(configurator.Container));
         x.UseShutdownTimeout(TimeSpan.FromSeconds(30));
     }).Build());
 }
Esempio n. 2
0
 public OnlineApiPlugin(HoustonSettingsConfigurator configurator)
 {
     this.configurator = configurator;
 }