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