Class JobRegistration
- Namespace
- Integrations.Infrastructure.Jobs
- Assembly
- Integrations.Infrastructure.dll
Registers scheduled jobs.
public static class JobRegistration
- Inheritance
-
JobRegistration
- Inherited Members
Methods
AddScheduledJob<TJob>(IServiceCollection)
Registers a scheduled job and the hosted service that runs it.
public static IServiceCollection AddScheduledJob<TJob>(this IServiceCollection services) where TJob : class, IScheduledJob
Parameters
servicesIServiceCollection
Returns
Type Parameters
TJob