17 implementations of IDistributedApplicationLifecycleHook
Aspire.Hosting (2)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.AppService (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Tests (4)
Aspire.Playground.Tests (1)
CustomResources.AppHost (1)
HealthChecksSandbox.AppHost (1)
Stress.AppHost (1)
TestProject.AppHost (1)
28 references to IDistributedApplicationLifecycleHook
Aspire.Hosting (21)
Lifecycle\LifecycleHookServiceCollectionExtensions.cs (8)
19public static void AddLifecycleHook<T>(this IServiceCollection services) where T : class, IDistributedApplicationLifecycleHook
21services.AddSingleton<IDistributedApplicationLifecycleHook, T>();
29public static void TryAddLifecycleHook<T>(this IServiceCollection services) where T : class, IDistributedApplicationLifecycleHook
31services.TryAddEnumerable(ServiceDescriptor.Singleton<IDistributedApplicationLifecycleHook, T>());
40public static void AddLifecycleHook<T>(this IServiceCollection services, Func<IServiceProvider, T> implementationFactory) where T : class, IDistributedApplicationLifecycleHook
42services.AddSingleton<IDistributedApplicationLifecycleHook, T>(implementationFactory);
51public static void TryAddLifecycleHook<T>(this IServiceCollection services, Func<IServiceProvider, T> implementationFactory) where T : class, IDistributedApplicationLifecycleHook
53services.TryAddEnumerable(ServiceDescriptor.Singleton<IDistributedApplicationLifecycleHook, T>(implementationFactory));
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Tests (3)