Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FindExpiredRecordsToDeleteQueryPrepareHandler" /> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 /// <param name="timeFactory">The time factory.</param>
 public FindExpiredRecordsToDeleteQueryPrepareHandler(CommandStringCache commandCache,
                                                      IGetTimeFactory timeFactory)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
     _getTime      = timeFactory.Create();
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="DoesJobExistQueryHandler{TConnection, TTransaction}" /> class.
        /// </summary>
        /// <param name="commandCache">The command cache.</param>
        /// <param name="connectionInformation">The connection information.</param>
        /// <param name="tableExists">The table exists.</param>
        /// <param name="tableNameHelper">The table name helper.</param>
        /// <param name="dbConnectionFactory">The database connection factory.</param>
        /// <param name="transactionFactory">The transaction factory.</param>
        /// <param name="prepareQuery">The prepare query.</param>
        /// <param name="readColumn">The read column.</param>
        public DoesJobExistQueryHandler(CommandStringCache commandCache,
                                        IConnectionInformation connectionInformation,
                                        IQueryHandler <GetTableExistsQuery, bool> tableExists,
                                        ITableNameHelper tableNameHelper,
                                        IDbConnectionFactory dbConnectionFactory,
                                        ITransactionFactory transactionFactory,
                                        IPrepareQueryHandler <DoesJobExistQuery <TConnection, TTransaction>, QueueStatuses> prepareQuery,
                                        IReadColumn readColumn)
        {
            Guard.NotNull(() => commandCache, commandCache);
            Guard.NotNull(() => connectionInformation, connectionInformation);
            Guard.NotNull(() => tableExists, tableExists);
            Guard.NotNull(() => tableNameHelper, tableNameHelper);
            Guard.NotNull(() => dbConnectionFactory, dbConnectionFactory);
            Guard.NotNull(() => transactionFactory, transactionFactory);
            Guard.NotNull(() => prepareQuery, prepareQuery);
            Guard.NotNull(() => readColumn, readColumn);

            _commandCache          = commandCache;
            _connectionInformation = connectionInformation;
            _tableExists           = tableExists;
            _tableNameHelper       = tableNameHelper;
            _dbConnectionFactory   = dbConnectionFactory;
            _transactionFactory    = transactionFactory;
            _prepareQuery          = prepareQuery;
            _readColumn            = readColumn;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetTableExistsTransactionQueryPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 /// <param name="connectionInformation">The connection information.</param>
 public GetTableExistsTransactionQueryPrepareHandler(CommandStringCache commandCache,
                                                     IConnectionInformation connectionInformation)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache          = commandCache;
     _connectionInformation = connectionInformation;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SendHeartBeatCommandPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 /// <param name="getTimeFactory">The get time factory.</param>
 public SendHeartBeatCommandPrepareHandler(CommandStringCache commandCache,
                                           IGetTimeFactory getTimeFactory)
 {
     Guard.NotNull(() => commandCache, commandCache);
     Guard.NotNull(() => getTimeFactory, getTimeFactory);
     _commandCache = commandCache;
     _getTime      = getTimeFactory.Create();
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FindRecordsToResetByHeartBeatQueryPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 /// <param name="configuration">The configuration.</param>
 public FindRecordsToResetByHeartBeatQueryPrepareHandler(CommandStringCache commandCache,
                                                         QueueConsumerConfiguration configuration)
 {
     Guard.NotNull(() => commandCache, commandCache);
     Guard.NotNull(() => configuration, configuration);
     _commandCache  = commandCache;
     _configuration = configuration;
 }
 /// <summary>Initializes a new instance of the <see cref="GetTableExistsQueryPrepareHandler"/> class.</summary>
 /// <param name="commandCache">The command cache.</param>
 /// <param name="connectionInformation">The connection information.</param>
 /// <param name="schema">The schema that the queue is using</param>
 public GetTableExistsQueryPrepareHandler(CommandStringCache commandCache,
                                          IConnectionInformation connectionInformation, ISqlSchema schema)
 {
     Guard.NotNull(() => commandCache, commandCache);
     Guard.NotNull(() => connectionInformation, connectionInformation);
     _commandCache          = commandCache;
     _connectionInformation = connectionInformation;
     _schema = schema;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FindErrorRecordsToDeleteQueryPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 /// <param name="timeFactory">The time factory.</param>
 /// <param name="configuration">The configuration.</param>
 public FindErrorRecordsToDeleteQueryPrepareHandler(CommandStringCache commandCache,
                                                    IGetTimeFactory timeFactory,
                                                    IMessageErrorConfiguration configuration)
 {
     Guard.NotNull(() => commandCache, commandCache);
     Guard.NotNull(() => timeFactory, timeFactory);
     _commandCache  = commandCache;
     _configuration = configuration;
     _getTime       = timeFactory.Create();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FindRecordsToResetByHeartBeatQueryPrepareHandler" /> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 /// <param name="configuration">The configuration.</param>
 /// <param name="getTimeFactory">The get time factory.</param>
 public FindRecordsToResetByHeartBeatQueryPrepareHandler(CommandStringCache commandCache,
                                                         QueueConsumerConfiguration configuration,
                                                         IGetTimeFactory getTimeFactory)
 {
     Guard.NotNull(() => commandCache, commandCache);
     Guard.NotNull(() => configuration, configuration);
     Guard.NotNull(() => getTimeFactory, getTimeFactory);
     _commandCache  = commandCache;
     _configuration = configuration;
     _getTime       = getTimeFactory.Create();
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResetHeartBeatCommandPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public ResetHeartBeatCommandPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetColumnNamesFromTableQueryPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public GetColumnNamesFromTableQueryPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SetErrorCountCommandPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public SetErrorCountCommandPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveQueueConfigurationCommandPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public SaveQueueConfigurationCommandPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetMessageErrorsQueryPrepareHandler{T}"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public GetMessageErrorsQueryPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetPendingExcludeDelayCountQueryPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public GetPendingExcludeDelayCountQueryPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
Пример #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetHeaderQueryPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public GetHeaderQueryPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetErrorRecordExistsQueryPrepareHandler{T}"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public GetErrorRecordExistsQueryPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteStatusTableStatusCommandPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public DeleteStatusTableStatusCommandPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
Пример #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteMessageCommandPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public DeleteMessageCommandPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SetStatusTableStatusTransactionCommandPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public SetStatusTableStatusTransactionCommandPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
Пример #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FindExpiredRecordsToDeleteQueryPrepareHandler{T}"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public FindExpiredRecordsToDeleteQueryPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
Пример #21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DoesJobExistQueryPrepareHandler{TConnection, TTransaction}"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public DoesJobExistQueryPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetJobLastKnownEventQueryPrepareHandler"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public GetJobLastKnownEventQueryPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }
Пример #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetQueueOptionsQueryPrepareHandler{TTransportOptions}"/> class.
 /// </summary>
 /// <param name="commandCache">The command cache.</param>
 public GetQueueOptionsQueryPrepareHandler(CommandStringCache commandCache)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache = commandCache;
 }