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