public ServiceHostBuilder(IServiceBootstrap bootstrap) { bootstrap.PreConfigureLogger(); bootstrap.ConfigureLogger(); bootstrap.PostConfigureLogger(); _serviceCollection = new ServiceCollection(); _serviceCollection .AddSingleton(new ServiceLifetime()) .AddSingleton <IServiceLifetime>(provider => provider.GetService <ServiceLifetime>()) .AddSingleton(bootstrap) .AddSingleton(bootstrap.CreateMetadata()); }
public ConsoleHostEntryPoint(IServiceBootstrap bootstrap) { _bootstrap = bootstrap; }