Beispiel #1
0
 public JobManagerService(IApplicationNameProvider appNameProvider, DataSettings dataSettings, ProfigurationSet profiguration = null)
 {
     TypeResolver            = new TypeResolver();
     DataSettings            = dataSettings;
     ApplicationNameProvider = appNameProvider;
     JobsDirectory           = dataSettings.GetAppDataDirectory(appNameProvider, "Jobs").FullName;
     ProfigurationSet        = profiguration ?? new ProfigurationSet(System.IO.Path.Combine(JobsDirectory, "ProfigurationSet"));
     MaxConcurrentJobs       = 3;
     _enqueueSignal          = new AutoResetEvent(false);
     _runCompleteSignal      = new AutoResetEvent(false);
 }