Пример #1
0
 public SchedulerFactory(
     IQuartzConfig config,
     ILoggingSchedulerListener loggingSchedulerListener,
     ILoggingJobListener loggingJobListener,
     IJobFactory jobFactory,
     IRetrySettings retrySettings
     )
 {
     _retrySettings            = retrySettings;
     _config                   = config;
     _loggingSchedulerListener = loggingSchedulerListener;
     _loggingJobListener       = loggingJobListener;
     _jobFactory               = jobFactory;
 }
Пример #2
0
 public static NodeTestFixture EnableScheduling(this NodeTestFixture fixture, IRetrySettings config)
 {
     return(EnableScheduling(fixture, new InMemoryQuartzConfig(config)));
 }
 public ExponentialBackoffRetryStrategy(IRetrySettings settings)
 {
     this._settings = settings;
 }
Пример #4
0
 public ExponentialBackoffRetryStrategy(IRetrySettings settings, ILogger log)
 {
     _settings = settings;
     _log      = log.ForContext <ExponentialBackoffRetryStrategy>();
 }
 public FutureEventsFixture(ITestOutputHelper output, IRetrySettings settings = null) : base(output)
 {
     Add(new FutureAggregateDomainConfiguration());
     this.EnableScheduling(settings ?? new InMemoryRetrySettings());
 }
Пример #6
0
 internal RetryWorker(IOctopusSettings octopusSettings, IRetrySettings retrySettings)
 {
     sessionOctopusSettings = octopusSettings;
     sessionRetrySettings   = retrySettings;
 }
 public InMemoryQuartzConfig(IRetrySettings retry = null, string schedulerName = null)
 {
     Name         = schedulerName ?? "Scheduler_" + ++_number;
     RetryOptions = retry ?? new InMemoryRetrySettings();
 }