コード例 #1
0
 // 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();
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command,
     IBackgroundExceptionDispatcher backgroundExceptionDispatcher, Task initialWait)
 {
     return new TaskSeriesTimer(command, backgroundExceptionDispatcher, initialWait);
 }
コード例 #4
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command,
     IBackgroundExceptionDispatcher backgroundExceptionDispatcher)
 {
     return CreateProductUnderTest(command, backgroundExceptionDispatcher, Task.Delay(0));
 }
コード例 #5
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, Task initialWait)
 {
     return CreateProductUnderTest(command, CreateStackExceptionDispatcher(), initialWait);
 }
コード例 #6
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command)
 {
     return CreateProductUnderTest(command, CreateStackExceptionDispatcher(), Task.Delay(0));
 }
コード例 #7
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command,
                                                       IBackgroundExceptionDispatcher backgroundExceptionDispatcher)
 {
     return(CreateProductUnderTest(command, backgroundExceptionDispatcher, Task.Delay(0)));
 }
コード例 #8
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command, Task initialWait)
 {
     return(CreateProductUnderTest(command, CreateStackExceptionDispatcher(), initialWait));
 }
コード例 #9
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command)
 {
     return(CreateProductUnderTest(command, CreateStackExceptionDispatcher(), Task.Delay(0)));
 }
コード例 #10
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command,
                                                       IBackgroundExceptionDispatcher backgroundExceptionDispatcher, Task initialWait)
 {
     return(new TaskSeriesTimer(command, backgroundExceptionDispatcher, initialWait));
 }
コード例 #11
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command,
                                                       IWebJobsExceptionHandler exceptionHandler, Task initialWait)
 {
     return(new TaskSeriesTimer(command, exceptionHandler, initialWait));
 }
コード例 #12
0
 private static TaskSeriesTimer CreateProductUnderTest(ITaskSeriesCommand command,
                                                       IWebJobsExceptionHandler exceptionHandler)
 {
     return(CreateProductUnderTest(command, exceptionHandler, Task.Delay(0)));
 }