11 references to BeforeResourceStartedEvent
Aspire.Hosting (4)
Dcp\ApplicationExecutor.cs (2)
1215
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(resource, serviceProvider);
1585
var
beforeResourceStartedEvent = new BeforeResourceStartedEvent(cr.ModelResource, serviceProvider);
DistributedApplicationBuilder.cs (1)
172
Eventing.Subscribe<
BeforeResourceStartedEvent
>(async (@event, ct) =>
ResourceBuilderExtensions.cs (1)
867
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)
109
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeResourceStartedEvent
>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Tests (5)
Dcp\ApplicationExecutorTests.cs (3)
63
var beforeStartedEvents = new List<
BeforeResourceStartedEvent
>();
65
eventing.Subscribe<
BeforeResourceStartedEvent
>((@event, ct) =>
79
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) =>