// 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(); }
// 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 static ITaskSeriesTimer CreateTimer(ValueWatcherCommand command, IBackgroundExceptionDispatcher backgroundExceptionDispatcher) { return new TaskSeriesTimer(command, backgroundExceptionDispatcher, Task.Delay(IntialDelay)); }
public static ITaskSeriesTimer CreateTimer(ValueWatcherCommand command, IBackgroundExceptionDispatcher backgroundExceptionDispatcher) { return(new TaskSeriesTimer(command, backgroundExceptionDispatcher, Task.Delay(IntialDelay))); }
public static ITaskSeriesTimer CreateTimer(ValueWatcherCommand command, IWebJobsExceptionHandler exceptionHandler) { return(new TaskSeriesTimer(command, exceptionHandler, Task.Delay(IntialDelay))); }