EventingSubscriberServiceCollectionExtensions
Class static net10.0
Provides extension methods for adding event subscribers to the
DependencyInjection.IServiceCollection. namespace Aspire.Hosting.Lifecycle;
public static class EventingSubscriberServiceCollectionExtensions{ // ...}Methods2
Section titled MethodsAddEventingSubscriber(IServiceCollection)extension Adds a singleton event subscriber of type
T to the service collection. TryAddEventingSubscriber(IServiceCollection)extension Attempts to add a singleton event subscriber of type
T to the service collection.