Method AddHostedService
AddHostedService<TService, TImplementation>(IServiceCollection)
Declaration
public static void AddHostedService<TService, TImplementation>(this IServiceCollection services) where TService : class, IHostedService where TImplementation : class, TService
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services |
Type Parameters
Name | Description |
---|---|
TService | |
TImplementation |