/// <summary> /// Initializes a new instance of the <see cref="GetUtcDateQueryHandler" /> class. /// </summary> /// <param name="prepareQuery">The prepare query.</param> /// <param name="dbConnectionFactory">The database connection factory.</param> /// <param name="readColumn">The read column.</param> public GetUtcDateQueryHandler(IPrepareQueryHandler <GetUtcDateQuery, DateTime> prepareQuery, IDbConnectionFactory dbConnectionFactory, IReadColumn readColumn) { Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => dbConnectionFactory, dbConnectionFactory); Guard.NotNull(() => readColumn, readColumn); _prepareQuery = prepareQuery; _dbConnectionFactory = dbConnectionFactory; _readColumn = readColumn; }
/// <summary> /// Initializes a new instance of the <see cref="GetPendingExcludeDelayCountQueryHandler" /> class. /// </summary> /// <param name="prepareQuery">The prepare query.</param> /// <param name="connectionFactory">The connection factory.</param> /// <param name="readColumn">The read column.</param> public GetPendingExcludeDelayCountQueryHandler(IPrepareQueryHandler <GetPendingExcludeDelayCountQuery, long> prepareQuery, IDbConnectionFactory connectionFactory, IReadColumn readColumn) { Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => connectionFactory, connectionFactory); Guard.NotNull(() => readColumn, readColumn); _prepareQuery = prepareQuery; _connectionFactory = connectionFactory; _readColumn = readColumn; }
/// <summary> /// Initializes a new instance of the <see cref="GetErrorRetryCountQueryHandler{T}" /> class. /// </summary> /// <param name="prepareQuery">The prepare query.</param> /// <param name="connectionFactory">The connection factory.</param> /// <param name="readColumn">The read column.</param> public GetErrorRetryCountQueryHandler(IPrepareQueryHandler <GetErrorRetryCountQuery <T>, int> prepareQuery, IDbConnectionFactory connectionFactory, IReadColumn readColumn) { Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => connectionFactory, connectionFactory); Guard.NotNull(() => readColumn, readColumn); _prepareQuery = prepareQuery; _connectionFactory = connectionFactory; _readColumn = readColumn; }
/// <summary> /// Initializes a new instance of the <see cref="GetColumnNamesFromTableQueryHandler" /> class. /// </summary> /// <param name="dbConnectionFactory">The database connection factory.</param> /// <param name="readColumn">The read column.</param> /// <param name="prepareQuery">The prepare query.</param> public GetColumnNamesFromTableQueryHandler(IDbConnectionFactory dbConnectionFactory, IReadColumn readColumn, IPrepareQueryHandler <GetColumnNamesFromTableQuery, List <string> > prepareQuery) { Guard.NotNull(() => dbConnectionFactory, dbConnectionFactory); Guard.NotNull(() => readColumn, readColumn); Guard.NotNull(() => prepareQuery, prepareQuery); _dbConnectionFactory = dbConnectionFactory; _readColumn = readColumn; _prepareQuery = prepareQuery; }
/// <summary> /// Initializes a new instance of the <see cref="GetErrorRetryCountQueryHandler{T}" /> class. /// </summary> /// <param name="prepareQuery">The prepare query.</param> /// <param name="connectionFactory">The connection factory.</param> /// <param name="readColumn">The read column.</param> public GetMessageErrorsQueryHandler(IPrepareQueryHandler <GetMessageErrorsQuery <T>, Dictionary <string, int> > prepareQuery, IDbConnectionFactory connectionFactory, IReadColumn readColumn) { Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => connectionFactory, connectionFactory); Guard.NotNull(() => readColumn, readColumn); _prepareQuery = prepareQuery; _connectionFactory = connectionFactory; _readColumn = readColumn; }
/// <summary> /// Initializes a new instance of the <see cref="GetJobLastKnownEventQueryHandler" /> class. /// </summary> /// <param name="prepareQuery">The prepare query.</param> /// <param name="dbConnectionFactory">The database connection factory.</param> /// <param name="readColumn">The read column.</param> public GetJobLastKnownEventQueryHandler(IPrepareQueryHandler <GetJobLastKnownEventQuery, DateTimeOffset> prepareQuery, IDbConnectionFactory dbConnectionFactory, IReadColumn readColumn) { Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => dbConnectionFactory, dbConnectionFactory); Guard.NotNull(() => readColumn, readColumn); _prepareQuery = prepareQuery; _dbConnectionFactory = dbConnectionFactory; _readColumn = readColumn; }
/// <summary> /// Initializes a new instance of the <see cref="GetHeaderQueryHandler"/> class. /// </summary> /// <param name="connectionFactory">The connection factory.</param> /// <param name="prepareQuery">The prepare query.</param> /// <param name="readColumn">The read column.</param> /// <param name="serialization">The serialization.</param> public GetHeaderQueryHandler(IDbConnectionFactory connectionFactory, IPrepareQueryHandler <GetHeaderQuery, IDictionary <string, object> > prepareQuery, IReadColumn readColumn, ICompositeSerialization serialization) { Guard.NotNull(() => connectionFactory, connectionFactory); Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => readColumn, readColumn); Guard.NotNull(() => serialization, serialization); _connectionFactory = connectionFactory; _prepareQuery = prepareQuery; _readColumn = readColumn; _serialization = serialization; }
/// <summary> /// Initializes a new instance of the <see cref="FindErrorRecordsToDeleteQueryHandler{T}" /> class. /// </summary> /// <param name="dbConnectionFactory">The database connection factory.</param> /// <param name="readColumn">The read column.</param> /// <param name="prepareQuery">The prepare query.</param> public FindErrorRecordsToDeleteQueryHandler( IDbConnectionFactory dbConnectionFactory, IReadColumn readColumn, IPrepareQueryHandler <FindErrorMessagesToDeleteQuery <T>, IEnumerable <T> > prepareQuery) { Guard.NotNull(() => dbConnectionFactory, dbConnectionFactory); Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => readColumn, readColumn); _dbConnectionFactory = dbConnectionFactory; _readColumn = readColumn; _prepareQuery = prepareQuery; }
/// <summary> /// Initializes a new instance of the <see cref="FindRecordsToResetByHeartBeatQueryHandler" /> class. /// </summary> /// <param name="dbConnectionFactory">The database connection factory.</param> /// <param name="prepareQuery">The setup command.</param> /// <param name="readColumn">The read column.</param> public FindRecordsToResetByHeartBeatQueryHandler( IDbConnectionFactory dbConnectionFactory, IPrepareQueryHandler <FindMessagesToResetByHeartBeatQuery, IEnumerable <MessageToReset> > prepareQuery, IReadColumn readColumn) { Guard.NotNull(() => dbConnectionFactory, dbConnectionFactory); Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => readColumn, readColumn); _dbConnectionFactory = dbConnectionFactory; _prepareQuery = prepareQuery; _readColumn = readColumn; }
/// <summary> /// Initializes a new instance of the <see cref="FindRecordsToResetByHeartBeatQueryHandler{T}"/> class. /// </summary> /// <param name="dbConnectionFactory">The database connection factory.</param> /// <param name="prepareQuery">The prepare query.</param> /// <param name="readColumn">The read column.</param> /// <param name="serialization">The serialization.</param> public FindRecordsToResetByHeartBeatQueryHandler( IDbConnectionFactory dbConnectionFactory, IPrepareQueryHandler <FindMessagesToResetByHeartBeatQuery <T>, IEnumerable <MessageToReset <T> > > prepareQuery, IReadColumn readColumn, ICompositeSerialization serialization) { Guard.NotNull(() => dbConnectionFactory, dbConnectionFactory); Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => readColumn, readColumn); Guard.NotNull(() => serialization, serialization); _dbConnectionFactory = dbConnectionFactory; _prepareQuery = prepareQuery; _readColumn = readColumn; _serialization = serialization; }
/// <summary> /// Initializes a new instance of the <see cref="FindExpiredRecordsToDeleteQueryHandler{T}" /> class. /// </summary> /// <param name="dbConnectionFactory">The database connection factory.</param> /// <param name="options">The options.</param> /// <param name="readColumn">The read column.</param> /// <param name="prepareQuery">The prepare query.</param> public FindExpiredRecordsToDeleteQueryHandler( IDbConnectionFactory dbConnectionFactory, ITransportOptionsFactory options, IReadColumn readColumn, IPrepareQueryHandler <FindExpiredMessagesToDeleteQuery <T>, IEnumerable <T> > prepareQuery) { Guard.NotNull(() => dbConnectionFactory, dbConnectionFactory); Guard.NotNull(() => options, options); Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => readColumn, readColumn); _dbConnectionFactory = dbConnectionFactory; _readColumn = readColumn; _prepareQuery = prepareQuery; _options = new Lazy <ITransportOptions>(options.Create); }
/// <summary> /// Initializes a new instance of the <see cref="GetQueueOptionsQueryHandler{TTransportOptions}" /> class. /// </summary> /// <param name="serializer">The serializer.</param> /// <param name="tableExists">The table exists.</param> /// <param name="connectionInformation">The connection information.</param> /// <param name="prepareQuery">The prepare query.</param> /// <param name="tableNameHelper">The table name helper.</param> /// <param name="dbConnectionFactory">The database connection factory.</param> /// <param name="readColumn">The read column.</param> public GetQueueOptionsQueryHandler(IInternalSerializer serializer, IQueryHandler <GetTableExistsQuery, bool> tableExists, IConnectionInformation connectionInformation, IPrepareQueryHandler <GetQueueOptionsQuery <TTransportOptions>, TTransportOptions> prepareQuery, ITableNameHelper tableNameHelper, IDbConnectionFactory dbConnectionFactory, IReadColumn readColumn) { Guard.NotNull(() => serializer, serializer); Guard.NotNull(() => tableExists, tableExists); Guard.NotNull(() => prepareQuery, prepareQuery); Guard.NotNull(() => connectionInformation, connectionInformation); Guard.NotNull(() => tableNameHelper, tableNameHelper); Guard.NotNull(() => dbConnectionFactory, dbConnectionFactory); Guard.NotNull(() => readColumn, readColumn); _serializer = serializer; _tableExists = tableExists; _connectionInformation = connectionInformation; _prepareQuery = prepareQuery; _tableNameHelper = tableNameHelper; _dbConnectionFactory = dbConnectionFactory; _readColumn = readColumn; }