Exemplo n.º 1
0
 private async Task RunAsync(CancellationToken token)
 {
     using (var scope = container.BeginLifetimeScope())
     {
         IFixItQueueManager queueManager = scope.Resolve <IFixItQueueManager>();
         try
         {
             await queueManager.ProcessMessagesAsync(token);
         }
         catch (Exception ex)
         {
             logger.Error(ex, "Exception in worker role Run loop.");
         }
     }
 }
Exemplo n.º 2
0
 public TasksController(IFixItTaskRepository repository, IPhotoService photoStore, IFixItQueueManager queueManager)
 {
     _fixItRepository = repository;
     _photoService    = photoStore;
     _queueManager    = queueManager;
 }
 public TasksController(IFixItTaskRepository repository, IPhotoService photoStore, IFixItQueueManager queueManager)
 {
     fixItRepository = repository;
     photoService = photoStore;
     this.queueManager = queueManager;
 }
Exemplo n.º 4
0
 public TaskService(IFixItTaskRepository fixItRepository, IPhotoService photoService, IFixItQueueManager queueManager)
 {
     this.fixItRepository = fixItRepository;
     this.photoService = photoService;
     this.queueManager = queueManager;
 }
 public TaskService(IFixItTaskRepository fixItRepository, IPhotoService photoService, IFixItQueueManager queueManager)
 {
     this.fixItRepository = fixItRepository;
     this.photoService    = photoService;
     this.queueManager    = queueManager;
 }