// Begin watchers. public ValueWatcher(IReadOnlyDictionary<string, IWatcher> watches, CloudBlockBlob blobResults, TextWriter consoleOutput, IBackgroundExceptionDispatcher backgroundExceptionDispatcher) { ValueWatcherCommand command = new ValueWatcherCommand(watches, blobResults, consoleOutput); _command = command; _timer = ValueWatcherCommand.CreateTimer(command, backgroundExceptionDispatcher); _timer.Start(); }
public TaskSeriesTimer(ITaskSeriesCommand command, IBackgroundExceptionDispatcher backgroundExceptionDispatcher, Task initialWait) { if (command == null) { throw new ArgumentNullException("command"); } if (backgroundExceptionDispatcher == null) { throw new ArgumentNullException("backgroundExceptionDispatcher"); } if (initialWait == null) { throw new ArgumentNullException("initialWait"); } _command = command; _backgroundExceptionDispatcher = backgroundExceptionDispatcher; _initialWait = initialWait; _cancellationTokenSource = new CancellationTokenSource(); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, IBackgroundExceptionDispatcher backgroundExceptionDispatcher, Task initialWait) { return new TaskSeriesTimer(command, backgroundExceptionDispatcher, initialWait); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, IBackgroundExceptionDispatcher backgroundExceptionDispatcher) { return CreateProductUnderTest(command, backgroundExceptionDispatcher, Task.Delay(0)); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, Task initialWait) { return CreateProductUnderTest(command, CreateStackExceptionDispatcher(), initialWait); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command) { return CreateProductUnderTest(command, CreateStackExceptionDispatcher(), Task.Delay(0)); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, IBackgroundExceptionDispatcher backgroundExceptionDispatcher) { return(CreateProductUnderTest(command, backgroundExceptionDispatcher, Task.Delay(0))); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, Task initialWait) { return(CreateProductUnderTest(command, CreateStackExceptionDispatcher(), initialWait)); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command) { return(CreateProductUnderTest(command, CreateStackExceptionDispatcher(), Task.Delay(0))); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, IBackgroundExceptionDispatcher backgroundExceptionDispatcher, Task initialWait) { return(new TaskSeriesTimer(command, backgroundExceptionDispatcher, initialWait)); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, IWebJobsExceptionHandler exceptionHandler, Task initialWait) { return(new TaskSeriesTimer(command, exceptionHandler, initialWait)); }
private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, IWebJobsExceptionHandler exceptionHandler) { return(CreateProductUnderTest(command, exceptionHandler, Task.Delay(0))); }