Beispiel #1
0
 public FileBasedSempahoreManager()
 {
     log = ConsoleLog.Instance;
     initialWaitBeforeShowingLogMessage = (int)TimeSpan.FromSeconds(3).TotalMilliseconds;
     semaphoreCreator = new LockFileBasedSemaphoreCreator(log);
 }
Beispiel #2
0
 public FileBasedSempahoreManager(ILog log, TimeSpan initialWaitBeforeShowingLogMessage, ICreateSemaphores semaphoreCreator)
 {
     this.log = log;
     this.semaphoreCreator = semaphoreCreator;
     this.initialWaitBeforeShowingLogMessage = (int)initialWaitBeforeShowingLogMessage.TotalMilliseconds;
 }
 public FileBasedSempahoreManager()
 {
     this.log = new LogWrapper();
     this.initialWaitBeforeShowingLogMessage = (int)TimeSpan.FromSeconds(3).TotalMilliseconds;
     this.semaphoreCreator = new LockFileBasedSemaphoreCreator();
 }