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