3 instantiations of ResourceStoppedEvent
Aspire.Hosting (1)
Orchestrator\ApplicationOrchestrator.cs (1)
608await PublishEventToHierarchy(r => new ResourceStoppedEvent(r, _serviceProvider, currentResourceEvent), context.Resource, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
794await eventing.PublishAsync<ResourceStoppedEvent>(new(portResource, e.Services, new(portResource, portResource.Name, stoppedSnapshot!)), ct).ConfigureAwait(false);
Aspire.Hosting.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
331var testEvent = new ResourceStoppedEvent(resource.Resource, app.Services, testResourceEvent);
5 references to ResourceStoppedEvent
Aspire.Hosting (3)
Ats\EventingExports.cs (1)
88internal static IResourceBuilder<T> OnResourceStopped<T>(this IResourceBuilder<T> builder, Func<ResourceStoppedEvent, Task> callback)
DistributedApplicationEventingExtensions.cs (2)
65/// Subscribes a callback to the <see cref="ResourceStoppedEvent"/> event for <paramref name="builder"/>. 73public static IResourceBuilder<T> OnResourceStopped<T>(this IResourceBuilder<T> builder, Func<T, ResourceStoppedEvent, CancellationToken, Task> callback)
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
794await eventing.PublishAsync<ResourceStoppedEvent>(new(portResource, e.Services, new(portResource, portResource.Name, stoppedSnapshot!)), ct).ConfigureAwait(false);
Aspire.Hosting.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
331var testEvent = new ResourceStoppedEvent(resource.Resource, app.Services, testResourceEvent);