11 references to BeforeResourceStartedEvent
Aspire.Hosting (4)
Dcp\ApplicationExecutor.cs (2)
1234
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(resource, serviceProvider);
1604
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(cr.ModelResource, serviceProvider);
DistributedApplicationBuilder.cs (1)
174
Eventing.Subscribe<
BeforeResourceStartedEvent
>(async (@event, ct) =>
ResourceBuilderExtensions.cs (1)
876
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.Storage (1)
AzureStorageExtensions.cs (1)
108
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Tests (5)
Dcp\ApplicationExecutorTests.cs (3)
64
var beforeStartedEvents = new List<
BeforeResourceStartedEvent
>();
66
eventing.Subscribe<
BeforeResourceStartedEvent
>((@event, ct) =>
80
var
e = Assert.Single(beforeStartedEvents);
Eventing\DistributedApplicationBuilderEventingTests.cs (2)
182
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(redis.Resource, (e, ct) =>
209
builder.Eventing.Subscribe<
BeforeResourceStartedEvent
>((e, ct) =>