Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JobManager"/> class.
 /// </summary>
 internal JobManager()
 {
     _id = Guid.NewGuid().ToString("N").Substring(0, 10).ToLower();
     _providerJobs = new Dictionary<JobProvider, JobCollection>();
     _jobLockProviders = new JobLockProviderCollection();
     _defaultJobLockProvider = new DefaultJobLockProvider();
     _jobProviders = new JobProviderCollection();
     _jobs = new JobCollection();
     _jobProviderTimer = new Timer(OnJobProviderCallback);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JobManager"/> class.
 /// </summary>
 internal JobManager()
 {
     _id                     = Guid.NewGuid().ToString("N").Substring(0, 10).ToLower();
     _providerJobs           = new Dictionary <JobProvider, JobCollection>();
     _jobLockProviders       = new JobLockProviderCollection();
     _defaultJobLockProvider = new DefaultJobLockProvider();
     _jobProviders           = new JobProviderCollection();
     _jobs                   = new JobCollection();
     _jobProviderTimer       = new Timer(OnJobProviderCallback);
 }