Skip to content
Docs Try Aspire

ResourceNotificationService Constructors

Class Constructors 2 members
A service that allows publishing and subscribing to changes in the state of a resource.
Constructor(ILogger<ResourceNotificationService>, IHostApplicationLifetime) Section titled Constructor(ILogger<ResourceNotificationService>, IHostApplicationLifetime)
Creates a new instance of ResourceNotificationService.
public class ResourceNotificationService
{
public ResourceNotificationService(
ILogger<ResourceNotificationService> logger,
IHostApplicationLifetime hostApplicationLifetime)
{
// ...
}
}
logger ILogger<ResourceNotificationService> The logger.
hostApplicationLifetime IHostApplicationLifetime The host application lifetime.
Obsolete. Use the constructor that accepts an Logging.ILogger`1, Hosting.IHostApplicationLifetime and IServiceProvider. This constructor will be removed in the next major version of Aspire.
Constructor(ILogger<ResourceNotificationService>, IHostApplicationLifetime, IServiceProvider, ResourceLoggerService) Section titled Constructor(ILogger<ResourceNotificationService>, IHostApplicationLifetime, IServiceProvider, ResourceLoggerService)
Creates a new instance of ResourceNotificationService.
public class ResourceNotificationService
{
public ResourceNotificationService(
ILogger<ResourceNotificationService> logger,
IHostApplicationLifetime hostApplicationLifetime,
IServiceProvider serviceProvider,
ResourceLoggerService resourceLoggerService)
{
// ...
}
}
logger ILogger<ResourceNotificationService> The logger.
hostApplicationLifetime IHostApplicationLifetime The host application lifetime.
serviceProvider IServiceProvider The service provider.
resourceLoggerService ResourceLoggerService The resource logger service.