ServiceCollectionHostedServiceExtensions Classe

Definição

public ref class ServiceCollectionHostedServiceExtensions abstract sealed
public static class ServiceCollectionHostedServiceExtensions
type ServiceCollectionHostedServiceExtensions = class
Public Module ServiceCollectionHostedServiceExtensions
Herança
ServiceCollectionHostedServiceExtensions

Métodos

AddHostedService<THostedService>(IServiceCollection)

Adicione um registro IHostedService para o tipo fornecido.

AddHostedService<THostedService>(IServiceCollection, Func<IServiceProvider,THostedService>)

Adicione um registro IHostedService para o tipo fornecido.

Aplica-se a