11 references to BeforeResourceStartedEvent
Aspire.Hosting (4)
Orchestrator\ApplicationOrchestrator.cs (3)
53
_eventing.Subscribe<
BeforeResourceStartedEvent
>(WaitForInBeforeResourceStartedEvent);
57
private async Task WaitForInBeforeResourceStartedEvent(
BeforeResourceStartedEvent
@event, CancellationToken cancellationToken)
137
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(context.Resource, _serviceProvider);
ResourceBuilderExtensions.cs (1)
1007
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, (@event, ct) =>
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
262
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(resource.Resource, serviceProvider);
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
476
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
119
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Tests (4)
DistributedApplicationTests.cs (2)
446
var beforeResourceStartedEvents = Channel.CreateUnbounded<
BeforeResourceStartedEvent
>();
447
events.Subscribe<
BeforeResourceStartedEvent
>(async (e, ct) =>
Eventing\DistributedApplicationBuilderEventingTests.cs (2)
182
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(redis.Resource, (e, ct) =>
209
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>((e, ct) =>