ResourceNotificationService Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ResourceNotificationService(ILogger<ResourceNotificationService>) |
Obsolete.
Creates a new instance of ResourceNotificationService. |
ResourceNotificationService(ILogger<ResourceNotificationService>, IHostApplicationLifetime) |
Obsolete.
Creates a new instance of ResourceNotificationService. |
ResourceNotificationService(ILogger<ResourceNotificationService>, IHostApplicationLifetime, IServiceProvider, ResourceLoggerService) |
Creates a new instance of ResourceNotificationService. |
ResourceNotificationService(ILogger<ResourceNotificationService>)
Caution
ResourceNotificationService now requires an IHostApplicationLifetime.\r\nUse the constructor that accepts an ILogger<ResourceNotificationService> and IHostApplicationLifetime.\r\nThis constructor will be removed in the next major version of Aspire.
Creates a new instance of ResourceNotificationService.
[System.Obsolete("ResourceNotificationService now requires an IHostApplicationLifetime.\r\nUse the constructor that accepts an ILogger<ResourceNotificationService> and IHostApplicationLifetime.\r\nThis constructor will be removed in the next major version of Aspire.")]
public ResourceNotificationService (Microsoft.Extensions.Logging.ILogger<Aspire.Hosting.ApplicationModel.ResourceNotificationService> logger);
[<System.Obsolete("ResourceNotificationService now requires an IHostApplicationLifetime.\r\nUse the constructor that accepts an ILogger<ResourceNotificationService> and IHostApplicationLifetime.\r\nThis constructor will be removed in the next major version of Aspire.")>]
new Aspire.Hosting.ApplicationModel.ResourceNotificationService : Microsoft.Extensions.Logging.ILogger<Aspire.Hosting.ApplicationModel.ResourceNotificationService> -> Aspire.Hosting.ApplicationModel.ResourceNotificationService
Public Sub New (logger As ILogger(Of ResourceNotificationService))
Parameters
- logger
- ILogger<ResourceNotificationService>
The logger.
- Attributes
Remarks
Obsolete. Use the constructor that accepts an ILogger<TCategoryName> and IHostApplicationLifetime.
This constructor will be removed in the next major version of Aspire.
Applies to
ResourceNotificationService(ILogger<ResourceNotificationService>, IHostApplicationLifetime)
Caution
ResourceNotificationService now requires an IServiceProvider and ResourceLoggerService.\r\nUse the constructor that accepts an ILogger<ResourceNotificationService>, IHostApplicationLifetime, IServiceProvider and ResourceLoggerService.\r\nThis constructor will be removed in the next major version of Aspire.
Creates a new instance of ResourceNotificationService.
public ResourceNotificationService (Microsoft.Extensions.Logging.ILogger<Aspire.Hosting.ApplicationModel.ResourceNotificationService> logger, Microsoft.Extensions.Hosting.IHostApplicationLifetime hostApplicationLifetime);
[System.Obsolete("ResourceNotificationService now requires an IServiceProvider and ResourceLoggerService.\r\nUse the constructor that accepts an ILogger<ResourceNotificationService>, IHostApplicationLifetime, IServiceProvider and ResourceLoggerService.\r\nThis constructor will be removed in the next major version of Aspire.")]
public ResourceNotificationService (Microsoft.Extensions.Logging.ILogger<Aspire.Hosting.ApplicationModel.ResourceNotificationService> logger, Microsoft.Extensions.Hosting.IHostApplicationLifetime hostApplicationLifetime);
new Aspire.Hosting.ApplicationModel.ResourceNotificationService : Microsoft.Extensions.Logging.ILogger<Aspire.Hosting.ApplicationModel.ResourceNotificationService> * Microsoft.Extensions.Hosting.IHostApplicationLifetime -> Aspire.Hosting.ApplicationModel.ResourceNotificationService
[<System.Obsolete("ResourceNotificationService now requires an IServiceProvider and ResourceLoggerService.\r\nUse the constructor that accepts an ILogger<ResourceNotificationService>, IHostApplicationLifetime, IServiceProvider and ResourceLoggerService.\r\nThis constructor will be removed in the next major version of Aspire.")>]
new Aspire.Hosting.ApplicationModel.ResourceNotificationService : Microsoft.Extensions.Logging.ILogger<Aspire.Hosting.ApplicationModel.ResourceNotificationService> * Microsoft.Extensions.Hosting.IHostApplicationLifetime -> Aspire.Hosting.ApplicationModel.ResourceNotificationService
Public Sub New (logger As ILogger(Of ResourceNotificationService), hostApplicationLifetime As IHostApplicationLifetime)
Parameters
- logger
- ILogger<ResourceNotificationService>
The logger.
- hostApplicationLifetime
- IHostApplicationLifetime
The host application lifetime.
- Attributes
Remarks
Obsolete. Use the constructor that accepts an ILogger<TCategoryName>, IHostApplicationLifetime and IServiceProvider.
This constructor will be removed in the next major version of Aspire.
Applies to
ResourceNotificationService(ILogger<ResourceNotificationService>, IHostApplicationLifetime, IServiceProvider, ResourceLoggerService)
Creates a new instance of ResourceNotificationService.
public ResourceNotificationService (Microsoft.Extensions.Logging.ILogger<Aspire.Hosting.ApplicationModel.ResourceNotificationService> logger, Microsoft.Extensions.Hosting.IHostApplicationLifetime hostApplicationLifetime, IServiceProvider serviceProvider, Aspire.Hosting.ApplicationModel.ResourceLoggerService resourceLoggerService);
new Aspire.Hosting.ApplicationModel.ResourceNotificationService : Microsoft.Extensions.Logging.ILogger<Aspire.Hosting.ApplicationModel.ResourceNotificationService> * Microsoft.Extensions.Hosting.IHostApplicationLifetime * IServiceProvider * Aspire.Hosting.ApplicationModel.ResourceLoggerService -> Aspire.Hosting.ApplicationModel.ResourceNotificationService
Public Sub New (logger As ILogger(Of ResourceNotificationService), hostApplicationLifetime As IHostApplicationLifetime, serviceProvider As IServiceProvider, resourceLoggerService As ResourceLoggerService)
Parameters
- logger
- ILogger<ResourceNotificationService>
The logger.
- hostApplicationLifetime
- IHostApplicationLifetime
The host application lifetime.
- serviceProvider
- IServiceProvider
The service provider.
- resourceLoggerService
- ResourceLoggerService
The resource logger service.