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) |
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)
Creates a new instance of ResourceNotificationService.
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
Public Sub New (logger As ILogger(Of ResourceNotificationService), hostApplicationLifetime As IHostApplicationLifetime)
Parameters
- logger
- ILogger<ResourceNotificationService>
The logger.
- hostApplicationLifetime
- IHostApplicationLifetime
The host application lifetime.