共用方式為


ResourceNotificationService Constructors

Definition

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>)

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
Source:
ResourceNotificationService.cs

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)

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, 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.

Applies to