24 references to BeforeResourceStartedEvent
Aspire.Hosting (4)
Orchestrator\ApplicationOrchestrator.cs (3)
58
_eventing.Subscribe<
BeforeResourceStartedEvent
>(WaitForInBeforeResourceStartedEvent);
61
private async Task WaitForInBeforeResourceStartedEvent(
BeforeResourceStartedEvent
@event, CancellationToken cancellationToken)
166
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(context.Resource, _serviceProvider);
ResourceBuilderExtensions.cs (1)
1325
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, (@event, ct) =>
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
257
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(resource.Resource, serviceProvider);
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
135
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Tests (18)
DistributedApplicationTests.cs (2)
523
var beforeResourceStartedEvents = Channel.CreateUnbounded<
BeforeResourceStartedEvent
>();
524
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) =>
143
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
168
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
194
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
223
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
247
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
271
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
302
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
508
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
538
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
566
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
597
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>
628
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(projectA.Resource, (e, ct) =>