public ImageService(IBlobStorageService blobStorageService, IQueueStorageService queueStorageService)
        {
            _blobStorageService  = blobStorageService ?? throw new ArgumentNullException($"The {nameof(blobStorageService)} can not be null.");
            _queueStorageService = queueStorageService ?? throw new ArgumentNullException($"The {nameof(queueStorageService)} can not be null.");

            //var azureStorageTarget = (AzureTableStorageTarget)LogManager.Configuration.FindTargetByName("AzureTableStorage");
            //azureStorageTarget.ConnectionString = connection;
            //LogManager.ReconfigExistingLoggers();

            _logger = LogManager.GetCurrentClassLogger();
        }
Exemple #2
0
 public ImageService(IBlobStorageService blobStorageService, IQueueStorageService queueStorageService)
 {
     _blobStorageService  = blobStorageService ?? throw new ArgumentNullException(nameof(blobStorageService));
     _queueStorageService = queueStorageService ?? throw new ArgumentNullException(nameof(queueStorageService));
     _logger = LogManager.GetCurrentClassLogger();
 }
Exemple #3
0
 public TimerFunction(
     IQueueStorageService service
     )
 {
     _service = service;
 }
 public NotifyVolunteersHandler(IQueueStorageService storageService)
 {
     _storageService = storageService;
 }
Exemple #5
0
 public NotificationsService(ITableStorageService tableStorageService, IQueueStorageService queueStorageService)
 {
     this.tableStorageService = tableStorageService;
     this.queueStorageService = queueStorageService;
 }
Exemple #6
0
 public AuthMessageSender(IMediator mediator, IQueueStorageService storageService)
 {
     _mediator       = mediator;
     _storageService = storageService;
 }
 public AuthMessageSender(IMediator mediator, IQueueStorageService storageService)
 {
     _mediator = mediator;
     _storageService = storageService;
 }
Exemple #8
0
 public QueueController(IHubContext <QueueNotificationsHub, IQueueNotificationsHub> hubContext, IQueueStorageService queueService)
 {
     _queueService = queueService;
     _hubContext   = hubContext;
 }
Exemple #9
0
 public PictureController(ITableStorageRepository <UserPicture> tableStorageRepository, IBlobStorageRepository blobStorageRepository, IQueueStorageService queueStorageSevice)
 {
     _tableStorageRepository = tableStorageRepository;
     _blobStorageRepository  = blobStorageRepository;
     _queueStorageSevice     = queueStorageSevice;
 }