25 references to BeforeResourceStartedEvent
Aspire.Hosting (4)
Orchestrator\ApplicationOrchestrator.cs (3)
53
_eventing.Subscribe<
BeforeResourceStartedEvent
>(WaitForInBeforeResourceStartedEvent);
57
private async Task WaitForInBeforeResourceStartedEvent(
BeforeResourceStartedEvent
@event, CancellationToken cancellationToken)
140
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(context.Resource, _serviceProvider);
ResourceBuilderExtensions.cs (1)
1276
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, (@event, ct) =>
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
264
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(resource.Resource, serviceProvider);
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
481
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
126
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Tests (18)
DistributedApplicationTests.cs (2)
499
var beforeResourceStartedEvents = Channel.CreateUnbounded<
BeforeResourceStartedEvent
>();
500
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) =>
WithUrlsTests.cs (14)
62
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
88
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
114
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
139
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
165
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
194
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
218
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
242
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
273
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
479
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
509
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
537
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
568
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
599
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>