2 instantiations of ResourceEndpointsAllocatedEvent
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
726
var resourceEvent = new
ResourceEndpointsAllocatedEvent
(resource, _executionContext.ServiceProvider);
Aspire.Hosting.Tests (1)
WithUrlsTests.cs (1)
431
await e.Eventing.PublishAsync(new
ResourceEndpointsAllocatedEvent
(custom.Resource, e.Services), EventDispatchBehavior.BlockingConcurrent, ct);
6 references to ResourceEndpointsAllocatedEvent
Aspire.Hosting (5)
Dcp\DcpExecutor.cs (1)
726
var
resourceEvent = new ResourceEndpointsAllocatedEvent(resource, _executionContext.ServiceProvider);
EventingExtensions.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 (2)
55
_eventing.Subscribe<
ResourceEndpointsAllocatedEvent
>(OnResourceEndpointsAllocated);
266
private async Task OnResourceEndpointsAllocated(
ResourceEndpointsAllocatedEvent
@event, CancellationToken cancellationToken)
Aspire.Hosting.Tests (1)
WithUrlsTests.cs (1)
57
builder.Eventing.Subscribe<
ResourceEndpointsAllocatedEvent
>(projectA.Resource, (e, ct) =>