Beispiel #1
0
        public static void StartJob(string jobName, DriftClientConfig config, PerformContext hangfireContext)
        {
            config.Logger = new HangfireConsoleLogger <DriftClient>(hangfireContext, config.Logger);
            var drift = new DriftClient(config);

            drift.Run(jobName);
        }
Beispiel #2
0
 public DriftScheduler(IBackgroundJobClient backgroundJobs, DriftClientConfig driftConfig, ILogger <DriftScheduler> logger)
 {
     _backgroundJobs = backgroundJobs;
     _driftConfig    = driftConfig;
     _logger         = logger;
 }