ResourceNotificationService Constructors

Definition

Overloads

ResourceNotificationService(ILogger<ResourceNotificationService>)
Obsolete.

Creates a new instance of ResourceNotificationService.

ResourceNotificationService(ILogger<ResourceNotificationService>, IHostApplicationLifetime)

Creates a new instance of ResourceNotificationService.

ResourceNotificationService(ILogger<ResourceNotificationService>)

Source:
ResourceNotificationService.cs

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)

Source:
ResourceNotificationService.cs

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.

Applies to