11 references to BeforeResourceStartedEvent
Aspire.Hosting (4)
Dcp\ApplicationExecutor.cs (2)
1215var beforeResourceStartedEvent = new BeforeResourceStartedEvent(resource, serviceProvider); 1585var beforeResourceStartedEvent = new BeforeResourceStartedEvent(cr.ModelResource, serviceProvider);
DistributedApplicationBuilder.cs (1)
172Eventing.Subscribe<BeforeResourceStartedEvent>(async (@event, ct) =>
ResourceBuilderExtensions.cs (1)
867builder.ApplicationBuilder.Eventing.Subscribe<BeforeResourceStartedEvent>(builder.Resource, (@event, ct) =>
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
257var beforeResourceStartedEvent = new BeforeResourceStartedEvent(resource.Resource, serviceProvider);
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
109builder.ApplicationBuilder.Eventing.Subscribe<BeforeResourceStartedEvent>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Tests (5)
Dcp\ApplicationExecutorTests.cs (3)
63var beforeStartedEvents = new List<BeforeResourceStartedEvent>(); 65eventing.Subscribe<BeforeResourceStartedEvent>((@event, ct) => 79var e = Assert.Single(beforeStartedEvents);
Eventing\DistributedApplicationBuilderEventingTests.cs (2)
182builder.Eventing.Subscribe<BeforeResourceStartedEvent>(redis.Resource, (e, ct) => 209builder.Eventing.Subscribe<BeforeResourceStartedEvent>((e, ct) =>