3 instantiations of ResourceStoppedEvent
Aspire.Hosting (1)
Orchestrator\ApplicationOrchestrator.cs (1)
339
await PublishEventToHierarchy(r => new
ResourceStoppedEvent
(r, _serviceProvider, currentResourceEvent), context.Resource, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
677
await eventing.PublishAsync<ResourceStoppedEvent>(
new
(portResource, e.Services, new(portResource, portResource.Name, stoppedSnapshot!)), ct).ConfigureAwait(false);
Aspire.Hosting.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
302
var testEvent = new
ResourceStoppedEvent
(resource.Resource, app.Services, testResourceEvent);
4 references to ResourceStoppedEvent
Aspire.Hosting (2)
DistributedApplicationEventingExtensions.cs (2)
26
/// Subscribes a callback to the <see cref="
ResourceStoppedEvent
"/> event within the AppHost.
32
public static IResourceBuilder<T> OnResourceStopped<T>(this IResourceBuilder<T> builder, Func<T,
ResourceStoppedEvent
, CancellationToken, Task> callback)
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
677
await eventing.PublishAsync<
ResourceStoppedEvent
>(new(portResource, e.Services, new(portResource, portResource.Name, stoppedSnapshot!)), ct).ConfigureAwait(false);
Aspire.Hosting.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
302
var
testEvent = new ResourceStoppedEvent(resource.Resource, app.Services, testResourceEvent);