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."); } } }
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; }
public TaskService(IFixItTaskRepository fixItRepository, IPhotoService photoService, IFixItQueueManager queueManager) { this.fixItRepository = fixItRepository; this.photoService = photoService; this.queueManager = queueManager; }