src/Futurum.Microsoft.Extensions.DependencyInjection/Startable.cs
/// <summary>
/// Creates a ServiceProvider containing services from the provided IServiceCollection and starts all <see cref="IStartable"/>'s
/// <remarks>A startable is resolved at the start of the application lifecycle and is a place to perform actions as soon as the DependencyInjection container is built.</remarks>
/// </summary>
Creates a ServiceProvider containing services from the provided IServiceCollection and starts all 's
A startable is resolved at the start of the application lifecycle and is a place to perform actions as soon as the DependencyInjection container is built.
Creates a ServiceProvider containing services from the provided IServiceCollection and starts all ' s A startable is resolved at the start of the application lifecycle and is a place to perform actions as soon as the DependencyInjection container is built .
public static ServiceProvider BuildServiceProviderWithStartables(this IServiceCollection services)
    {
        var serviceProvider = services.BuildServiceProvider();
        var startables = serviceProvider.GetServices<IStartable>();
        foreach (var startable in startables)
        {
            startable.Start();
        }
        return serviceProvider;
    }
public static ServiceProvider BuildServiceProviderWithStartables ( this IServiceCollection services ) { var serviceProvider = services . BuildServiceProvider ( ) ; var startables = serviceProvider . GetServices < IStartable > ( ) ; foreach ( var startable in startables ) { startable . Start ( ) ; } return serviceProvider ; }
Creates a ServiceProvider containing services from the provided IServiceCollection and starts all 's
A startable is resolved at the start of the application lifecycle and is a place to perform actions as soon as the DependencyInjection container is built.
Creates a ServiceProvider containing services from the provided IServiceCollection and starts all ' s A startable is resolved at the start of the application lifecycle and is a place to perform actions as soon as the DependencyInjection container is built .
IServiceCollection
this