2 instantiations of BeforePublishEvent
Aspire.Hosting (1)
Publishing\PipelineExecutor.cs (1)
61new BeforePublishEvent(serviceProvider, model), stoppingToken
Aspire.Hosting.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
430var testEvent = new BeforePublishEvent(app.Services, new([]));
8 references to BeforePublishEvent
Aspire.Hosting (7)
Ats\BuilderExports.cs (2)
228Func<BeforePublishEvent, Task> callback) 233return builder.Eventing.Subscribe<BeforePublishEvent>(async (@event, ct) =>
Ats\EventingExports.cs (2)
183public static DistributedApplicationEventSubscription OnBeforePublish(this EventingSubscriberRegistrationContext context, Func<BeforePublishEvent, Task> callback) 188return context.Eventing.Subscribe<BeforePublishEvent>((@event, _) => callback(@event));
DistributedApplicationEventingExtensions.cs (2)
28/// Subscribes a callback to the <see cref="BeforePublishEvent"/> event within the AppHost. 35public static T OnBeforePublish<T>(this T builder, Func<BeforePublishEvent, CancellationToken, Task> callback)
Publishing\PipelineExecutor.cs (1)
60await eventing.PublishAsync<BeforePublishEvent>(
Aspire.Hosting.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
430var testEvent = new BeforePublishEvent(app.Services, new([]));