Example #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);
 }
Example #2
0
 public InPaymentRegistrationJob(IDataStore dataStore, BackgroundJobsConfig jobConfig)
 {
     this.dataStore = dataStore;
     this.jobConfig = jobConfig;
 }
Example #3
0
 public InPaymentRegistrationJob(IUnitOfWork uow, BackgroundJobsConfig jobConfig)
 {
     this.uow       = uow;
     this.jobConfig = jobConfig;
 }