13 references to BeforeResourceStartedEvent
Aspire.Hosting (4)
Dcp\ApplicationExecutor.cs (2)
1234var beforeResourceStartedEvent = new BeforeResourceStartedEvent(resource, serviceProvider); 1604var beforeResourceStartedEvent = new BeforeResourceStartedEvent(cr.ModelResource, serviceProvider);
DistributedApplicationBuilder.cs (1)
175Eventing.Subscribe<BeforeResourceStartedEvent>(async (@event, ct) =>
ResourceBuilderExtensions.cs (1)
876builder.ApplicationBuilder.Eventing.Subscribe<BeforeResourceStartedEvent>(builder.Resource, (@event, ct) =>
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
262var beforeResourceStartedEvent = new BeforeResourceStartedEvent(resource.Resource, serviceProvider);
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
227builder.ApplicationBuilder.Eventing.Subscribe<BeforeResourceStartedEvent>(builder.Resource, (e, ct) =>
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
281builder.ApplicationBuilder.Eventing.Subscribe<BeforeResourceStartedEvent>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
108builder.ApplicationBuilder.Eventing.Subscribe<BeforeResourceStartedEvent>(builder.Resource, async (@event, ct) =>
Aspire.Hosting.Tests (5)
Dcp\ApplicationExecutorTests.cs (3)
64var beforeStartedEvents = new List<BeforeResourceStartedEvent>(); 66eventing.Subscribe<BeforeResourceStartedEvent>((@event, ct) => 80var e = Assert.Single(beforeStartedEvents);
Eventing\DistributedApplicationBuilderEventingTests.cs (2)
182builder.Eventing.Subscribe<BeforeResourceStartedEvent>(redis.Resource, (e, ct) => 209builder.Eventing.Subscribe<BeforeResourceStartedEvent>((e, ct) =>