6 implementations of IDistributedApplicationLifecycleHook
Aspire.Hosting (1)
Aspire.Hosting.Tests (3)
Aspire.Playground.Tests (1)
TestProject.AppHost (1)
39 references to IDistributedApplicationLifecycleHook
Aspire.Hosting (22)
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 (2)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.AppService (1)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.Docker (2)
Aspire.Hosting.Kubernetes (2)
Aspire.Hosting.Tests (4)
CustomResources.AppHost (1)
HealthChecksSandbox.AppHost (1)
Stress.AppHost (1)