Ejemplo n.º 1
0
 public QueueService(
     IQueueQuery queueQueryHelper,
     IQueueCommand queueCommandHelper,
     IQueueLocker queueLocker,
     IGetQueueMessagesQuery queueMessages,
     IQueueMessageRecorder historyRecorder,
     IGetAiringQuery airingQueryHelper,
     IAiringMessagePusherQueueApi messagePusher,
     IQueueSaveCommand queueSaveCommand,
     CurrentAiringsQuery currentAiringQuery,
     IHangfireRecurringJobCommand hangfireCommand,
     IRemoteQueueHandler remoteQueueHandler,
     IQueueDeleteCommand queueDeleteCommand)
 {
     this.queueQueryHelper   = queueQueryHelper;
     this.queueCommandHelper = queueCommandHelper;
     this.queueLocker        = queueLocker;
     this.queueMessages      = queueMessages;
     this.historyRecorder    = historyRecorder;
     this.airingQueryHelper  = airingQueryHelper;
     this.messagePusher      = messagePusher;
     this.queueSaveCommand   = queueSaveCommand;
     this.currentAiringQuery = currentAiringQuery;
     this.hangfireCommand    = hangfireCommand;
     this.remoteQueueHandler = remoteQueueHandler;
     this.queueDeleteCommand = queueDeleteCommand;
 }
Ejemplo n.º 2
0
        public QueueHandler(IDatabaseContextFactory databaseContextFactory, IQueueQuery queueQuery)
        {
            Guard.AgainstNull(databaseContextFactory, nameof(databaseContextFactory));
            Guard.AgainstNull(queueQuery, nameof(queueQuery));

            _databaseContextFactory = databaseContextFactory;
            _queueQuery             = queueQuery;
        }
Ejemplo n.º 3
0
        public QueuesController(IServiceBus bus, IDatabaseContextFactory databaseContextFactory, IQueueQuery queueQuery)
        {
            Guard.AgainstNull(databaseContextFactory, nameof(databaseContextFactory));
            Guard.AgainstNull(queueQuery, nameof(queueQuery));
            Guard.AgainstNull(bus, nameof(bus));

            _databaseContextFactory = databaseContextFactory;
            _queueQuery             = queueQuery;
            _bus = bus;
        }
Ejemplo n.º 4
0
 public AiringService(IGetAiringQuery airingQueryHelper,
                      AppSettings appSettings,
                      IAiringSaveCommand airingSaveCommandHelper,
                      IAiringDeleteCommand airingDeleteCommandHelper, IAiringMessagePusher airingMessagePusherCommandHelper,
                      IQueueQuery queueQueryHelper,
                      ITaskUpdater taskUpdaterCommand,
                      IFileQuery fileQueryHelper,
                      IDestinationQuery destinationQueryHelper,
                      IPackageQuery packageQueryHelper,
                      IChangeHistoricalAiringQuery changeHistoricalAiringQueryHelper,
                      IChangeDeletedAiringQuery changeDeletedAiringQueryHelper,
                      IDeportExpiredAiring deportExpiredAiringHelper,
                      CurrentAiringsQuery currentAiringsQuery,
                      DeletedAiringsQuery deletedAiringsQuery,
                      IUpdateDeletedAiringQueueDelivery updateDeletedAiringQueueDelivery,
                      IUpdateAiringQueueDelivery updateAiringQueueDelivery,
                      IPackageCommand packagePersist,
                      IPurgeAiringCommand purgeAiringCommand,
                      IChangeNotificationCommands changeNotificaitonCommands,
                      IApplicationContext cntx
                      )
 {
     this.airingQueryHelper                = airingQueryHelper;
     this.airingSaveCommandHelper          = airingSaveCommandHelper;
     this.airingDeleteCommandHelper        = airingDeleteCommandHelper;
     this.airingMessagePusherCommandHelper = airingMessagePusherCommandHelper;
     this.queueQueryHelper                  = queueQueryHelper;
     this.taskUpdaterCommand                = taskUpdaterCommand;
     this.fileQueryHelper                   = fileQueryHelper;
     this.appSettings                       = appSettings;
     this.destinationQueryHelper            = destinationQueryHelper;
     this.packageQueryHelper                = packageQueryHelper;
     this.changeHistoricalAiringQueryHelper = changeHistoricalAiringQueryHelper;
     this.changeDeletedAiringQueryHelper    = changeDeletedAiringQueryHelper;
     this.deportExpiredAiringHelper         = deportExpiredAiringHelper;
     this.currentAiringsQuery               = currentAiringsQuery;
     this.deletedAiringsQuery               = deletedAiringsQuery;
     this.updateAiringQueueDelivery         = updateAiringQueueDelivery;
     this.updateDeletedAiringQueueDelivery  = updateDeletedAiringQueueDelivery;
     this.packagePersist                    = packagePersist;
     this.purgeAiringCommand                = purgeAiringCommand;
     this.changeNotificationCommand         = changeNotificaitonCommands;
     this.cntx = cntx;
 }
Ejemplo n.º 5
0
 public QueueDeleteCommand(IODTDatastore connection, IQueueQuery queueQuery)
 {
     _database       = connection.GetDatabase();
     this.queueQuery = queueQuery;
 }
Ejemplo n.º 6
0
 public MessagePusher(IQueueQuery getQueuesQuery, IAiringMessagePusherMessagePusher messagePusher)
 {
     _getQueuesQuery = getQueuesQuery;
     _messagePusher  = messagePusher;
 }