Exemple #1
0
 public static IServiceCollection AddBackgroundJobs(
     this IServiceCollection services,
     BackgroundJobsConfig jobsConfig)
 {
     services.AddSingleton(jobsConfig);
     services.AddHangfire(config =>
                          config.UsePostgreSqlStorage(jobsConfig.HangfireConnectionStringName));
     services.AddScoped <InPaymentRegistrationJob, InPaymentRegistrationJob>();
     return(services);
 }
Exemple #2
0
 public InPaymentRegistrationJob(IDataStore dataStore, BackgroundJobsConfig jobConfig)
 {
     this.dataStore = dataStore;
     this.jobConfig = jobConfig;
 }
Exemple #3
0
 public InPaymentRegistrationJob(IUnitOfWork uow, BackgroundJobsConfig jobConfig)
 {
     this.uow       = uow;
     this.jobConfig = jobConfig;
 }