4 instantiations of ResourceStoppedEvent
Aspire.Hosting (1)
Orchestrator\ApplicationOrchestrator.cs (1)
598
await PublishEventToHierarchy(r => new
ResourceStoppedEvent
(r, _serviceProvider, currentResourceEvent), context.Resource, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
842
.PublishAsync(new
ResourceStoppedEvent
(portResource, services, new(portResource, portResource.Name, stoppedSnapshot!)),
Aspire.Hosting.MongoDB.Tests (1)
ReplicaSet\AddMongoDBReplicaSetTests.cs (1)
348
await eventing.PublishAsync(new
ResourceStoppedEvent
(mongo1.Resource, app.Services, stoppedResourceEvent));
Aspire.Hosting.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
331
var testEvent = new
ResourceStoppedEvent
(resource.Resource, app.Services, testResourceEvent);
4 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.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
331
var
testEvent = new ResourceStoppedEvent(resource.Resource, app.Services, testResourceEvent);