ServiceCollectionHostedServiceExtensions Klass

Definition

Tilläggsmetoder för att lägga till värdbaserade tjänster i en IServiceCollection.

public ref class ServiceCollectionHostedServiceExtensions abstract sealed
public static class ServiceCollectionHostedServiceExtensions
type ServiceCollectionHostedServiceExtensions = class
Public Module ServiceCollectionHostedServiceExtensions
Arv
ServiceCollectionHostedServiceExtensions

Metoder

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

Lägg till en IHostedService registrering för den angivna typen.

AddHostedService<THostedService>(IServiceCollection)

Lägg till en IHostedService registrering för den angivna typen.

Gäller för