コード例 #1
0
 // Notice that we inject a single IBackgroundEventHandler here although there can be (actually are) multiple implementations. As we'll see
 // in a moment, there is a good amount of magic involved.
 public BackgroundTask(IBackgroundEventHandler eventHandler)
 {
     _eventHandler = eventHandler;
 }
コード例 #2
0
 public ScheduledTask(IBackgroundEventHandler eventHandler, IScheduledTaskManager taskManager, IClock clock)
 {
     _eventHandler = eventHandler;
     _taskManager  = taskManager;
     _clock        = clock;
 }
コード例 #3
0
 // Notice that we inject a single IBackgroundEventHandler here although there can be (actually are) multiple implementations. As we'll see
 // in a moment, there is a good amount of magic involved.
 public BackgroundTask(IBackgroundEventHandler eventHandler)
 {
     _eventHandler = eventHandler;
 }
コード例 #4
0
 public ScheduledTask(IBackgroundEventHandler eventHandler, IScheduledTaskManager taskManager, IClock clock)
 {
     _eventHandler = eventHandler;
     _taskManager = taskManager;
     _clock = clock;
 }