2 instantiations of ResourceEndpointsAllocatedEvent
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
813
var resourceEvent = new
ResourceEndpointsAllocatedEvent
(resource, _executionContext.ServiceProvider);
Aspire.Hosting.Tests (1)
WithUrlsTests.cs (1)
468
await e.Eventing.PublishAsync(new
ResourceEndpointsAllocatedEvent
(custom, e.Services), EventDispatchBehavior.BlockingConcurrent, ct);
6 references to ResourceEndpointsAllocatedEvent
Aspire.Hosting (6)
Dcp\DcpExecutor.cs (1)
813
var
resourceEvent = new ResourceEndpointsAllocatedEvent(resource, _executionContext.ServiceProvider);
DistributedApplicationEventingExtensions.cs (2)
48
/// Subscribes a callback to the <see cref="
ResourceEndpointsAllocatedEvent
"/> event within the AppHost.
54
public static IResourceBuilder<T> OnResourceEndpointsAllocated<T>(this IResourceBuilder<T> builder, Func<T,
ResourceEndpointsAllocatedEvent
, CancellationToken, Task> callback)
Orchestrator\ApplicationOrchestrator.cs (3)
58
_eventing.Subscribe<
ResourceEndpointsAllocatedEvent
>(OnResourceEndpointsAllocated);
304
private async Task OnResourceEndpointsAllocated(
ResourceEndpointsAllocatedEvent
@event, CancellationToken cancellationToken)
333
_eventing.Subscribe<
ResourceEndpointsAllocatedEvent
>(reference, (_, _) =>