コード例 #1
0
ファイル: Worker.cs プロジェクト: eallegretta/Roque
 private Worker(string name, Queue queue, int tooManyErrors = 10, int tooManyErrorsRetrySeconds = 30)
 {
     this.Name = name;
     this.Queue = queue;
     this.TooManyErrors = tooManyErrors;
     this.TooManyErrorsRetrySeconds = tooManyErrorsRetrySeconds;
 }
コード例 #2
0
ファイル: Worker.cs プロジェクト: stefanschneider/Roque
 private Worker(string name, Queue queue, int tooManyErrors = 10, int tooManyErrorsRetrySeconds = 30)
 {
     if (_Instances.ContainsKey(name))
     {
         throw new Exception("Worker name already exists: " + name);
     }
     this.Name = name;
     this.Queue = queue;
     this.TooManyErrors = tooManyErrors;
     this.TooManyErrorsRetrySeconds = tooManyErrorsRetrySeconds;
     _Instances[Name] = this;
 }