15 implementations of IDistributedApplicationEventingSubscriber
Aspire.Hosting (6)
Ats\EventingExports.cs (1)
221private sealed class CallbackEventingSubscriber(Func<EventingSubscriberRegistrationContext, Task> subscribe) : IDistributedApplicationEventingSubscriber
Dashboard\DashboardEventHandlers.cs (1)
45) : IDistributedApplicationEventingSubscriber, IAsyncDisposable
Devcontainers\DevcontainerPortForwardingEventingSubscriber.cs (1)
12internal sealed class DevcontainerPortForwardingEventingSubscriber : IDistributedApplicationEventingSubscriber
Lifecycle\RequiredCommandValidationEventingSubscriber.cs (1)
19IRequiredCommandValidator validator) : IDistributedApplicationEventingSubscriber
Lifecycle\TerminalHostEventingSubscriber.cs (1)
37ILogger<TerminalHostEventingSubscriber> logger) : IDistributedApplicationEventingSubscriber
Lifecycle\TerminalHostOrphanCleanupService.cs (1)
512TerminalHostOrphanCleanupService cleanupService) : IDistributedApplicationEventingSubscriber
Aspire.Hosting.Maui (4)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
28ResourceLoggerService loggerService) : IDistributedApplicationEventingSubscriber
Lifecycle\UnsupportedPlatformEventSubscriber.cs (1)
20internal sealed class UnsupportedPlatformEventSubscriber(ResourceNotificationService notificationService) : IDistributedApplicationEventingSubscriber
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
45IFileSystemService fileSystemService) : IDistributedApplicationEventingSubscriber
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
45IFileSystemService fileSystemService) : IDistributedApplicationEventingSubscriber
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationTestFactory.cs (1)
51internal sealed class ContainerRegistryHook : IDistributedApplicationEventingSubscriber
CustomResources.AppHost (1)
TestResource.cs (1)
35) : IDistributedApplicationEventingSubscriber
HealthChecksSandbox.AppHost (1)
AppHost.cs (1)
124internal sealed class TestResourceLifecycle(ResourceNotificationService notificationService) : IDistributedApplicationEventingSubscriber
Stress.AppHost (1)
TestResource.cs (1)
150) : IDistributedApplicationEventingSubscriber, IAsyncDisposable
TestProject.AppHost (1)
TestProgram.cs (1)
170private sealed class EndPointWriterHook : IDistributedApplicationEventingSubscriber
20 references to IDistributedApplicationEventingSubscriber
Aspire.Hosting (15)
Ats\EventingExports.cs (3)
28builder.Services.AddSingleton<IDistributedApplicationEventingSubscriber>(new CallbackEventingSubscriber(subscribe)); 42if (builder.Services.Any(descriptor => descriptor.ServiceType == typeof(IDistributedApplicationEventingSubscriber) && 49builder.Services.AddSingleton<IDistributedApplicationEventingSubscriber>(new CallbackEventingSubscriber(subscribe));
DistributedApplication.cs (2)
600var eventSubscribers = _host.Services.GetServices<IDistributedApplicationEventingSubscriber>().ToArray(); 605foreach (var subscriber in eventSubscribers)
DistributedApplicationEventingExtensions.cs (3)
21/// <remarks>If you need to ensure you only subscribe to the event once, see <see cref="Lifecycle.IDistributedApplicationEventingSubscriber"/>.</remarks> 33/// <remarks>If you need to ensure you only subscribe to the event once, see <see cref="Lifecycle.IDistributedApplicationEventingSubscriber"/>.</remarks> 45/// <remarks>If you need to ensure you only subscribe to the event once, see <see cref="Lifecycle.IDistributedApplicationEventingSubscriber"/>.</remarks>
Lifecycle\EventingSubscriberServiceCollectionExtensions.cs (6)
17/// <typeparam name="T">A service that implements <see cref="IDistributedApplicationEventingSubscriber"/></typeparam> 20public static void AddEventingSubscriber<T>(this IServiceCollection services) where T : class, IDistributedApplicationEventingSubscriber 22services.AddSingleton<IDistributedApplicationEventingSubscriber, T>(); 28/// <typeparam name="T">A service that implements <see cref="IDistributedApplicationEventingSubscriber"/></typeparam> 31public static void TryAddEventingSubscriber<T>(this IServiceCollection services) where T : class, IDistributedApplicationEventingSubscriber 33services.TryAddEnumerable(ServiceDescriptor.Singleton<IDistributedApplicationEventingSubscriber, T>());
Lifecycle\TerminalHostEventingSubscriber.cs (1)
25/// fire ahead of DI-registered <see cref="IDistributedApplicationEventingSubscriber"/>
Aspire.Hosting.Tests (5)
AtsEventingExportsTests.cs (1)
30.Where(descriptor => descriptor.ServiceType == typeof(IDistributedApplicationEventingSubscriber) &&
DistributedApplicationBuilderTests.cs (1)
58var eventingSubscribers = app.Services.GetServices<IDistributedApplicationEventingSubscriber>();
RequiredCommandAnnotationTests.cs (3)
138var subscribers = app.Services.GetServices<IDistributedApplicationEventingSubscriber>(); 500var eventSubscribers = app.Services.GetServices<IDistributedApplicationEventingSubscriber>(); 504foreach (var subscriber in eventSubscribers)