/// <summary> /// Initializes a new instance of the <see cref="SendMessageCommandHandler" /> class. /// </summary> /// <param name="tableNameHelper">The table name helper.</param> /// <param name="serializer">The serializer.</param> /// <param name="optionsFactory">The options factory.</param> /// <param name="headers">The headers.</param> /// <param name="commandCache">The command cache.</param> /// <param name="configurationSend">The configuration send.</param> /// <param name="sendJobStatus">The send job status.</param> /// <param name="jobExistsHandler">The job exists handler.</param> /// <param name="jobSchedulerMetaData">The job scheduler meta data.</param> public SendMessageCommandHandler(ITableNameHelper tableNameHelper, ICompositeSerialization serializer, ISqlServerMessageQueueTransportOptionsFactory optionsFactory, IHeaders headers, SqlServerCommandStringCache commandCache, TransportConfigurationSend configurationSend, ICommandHandler <SetJobLastKnownEventCommand <SqlConnection, SqlTransaction> > sendJobStatus, IQueryHandler <DoesJobExistQuery <SqlConnection, SqlTransaction>, QueueStatuses> jobExistsHandler, IJobSchedulerMetaData jobSchedulerMetaData) { Guard.NotNull(() => tableNameHelper, tableNameHelper); Guard.NotNull(() => serializer, serializer); Guard.NotNull(() => optionsFactory, optionsFactory); Guard.NotNull(() => headers, headers); Guard.NotNull(() => commandCache, commandCache); Guard.NotNull(() => configurationSend, configurationSend); Guard.NotNull(() => sendJobStatus, sendJobStatus); Guard.NotNull(() => jobExistsHandler, jobExistsHandler); Guard.NotNull(() => jobSchedulerMetaData, jobSchedulerMetaData); _tableNameHelper = tableNameHelper; _serializer = serializer; _options = new Lazy <SqlServerMessageQueueTransportOptions>(optionsFactory.Create); _headers = headers; _commandCache = commandCache; _configurationSend = configurationSend; _sendJobStatus = sendJobStatus; _jobExistsHandler = jobExistsHandler; _jobSchedulerMetaData = jobSchedulerMetaData; }
/// <summary> /// Initializes a new instance of the <see cref="SetJobLastKnownEventCommandHandler" /> class. /// </summary> /// <param name="commandCache">The command cache.</param> /// <param name="connectionInformation">The connection information.</param> public SetJobLastKnownEventCommandHandler(SqlServerCommandStringCache commandCache, IConnectionInformation connectionInformation) { Guard.NotNull(() => commandCache, commandCache); Guard.NotNull(() => connectionInformation, connectionInformation); _commandCache = commandCache; _connectionInformation = connectionInformation; }
/// <summary> /// Initializes a new instance of the <see cref="SendHeartBeatCommandHandler" /> class. /// </summary> /// <param name="commandCache">The command cache.</param> /// <param name="connectionInformation">The connection information.</param> public SendHeartBeatCommandHandler(SqlServerCommandStringCache commandCache, IConnectionInformation connectionInformation) { Guard.NotNull(() => commandCache, commandCache); Guard.NotNull(() => connectionInformation, connectionInformation); _commandCache = commandCache; _connectionInformation = connectionInformation; }
public CreateDequeueStatement(ISqlServerMessageQueueTransportOptionsFactory optionsFactory, ITableNameHelper tableNameHelper, SqlServerCommandStringCache commandCache) { Guard.NotNull(() => optionsFactory, optionsFactory); Guard.NotNull(() => tableNameHelper, tableNameHelper); Guard.NotNull(() => commandCache, commandCache); _options = new Lazy <SqlServerMessageQueueTransportOptions>(optionsFactory.Create); _tableNameHelper = tableNameHelper; _commandCache = commandCache; }
public CreateDequeueStatement(ISqlServerMessageQueueTransportOptionsFactory optionsFactory, TableNameHelper tableNameHelper, SqlServerCommandStringCache commandCache) { Guard.NotNull(() => optionsFactory, optionsFactory); Guard.NotNull(() => tableNameHelper, tableNameHelper); Guard.NotNull(() => commandCache, commandCache); _options = new Lazy<SqlServerMessageQueueTransportOptions>(optionsFactory.Create); _tableNameHelper = tableNameHelper; _commandCache = commandCache; }
/// <summary> /// Initializes a new instance of the <see cref="RollbackMessageCommandHandler" /> class. /// </summary> /// <param name="getUtcDateQuery">The get UTC date query.</param> /// <param name="options">The options.</param> /// <param name="tableNameHelper">The table name helper.</param> /// <param name="connectionInformation">The connection information.</param> /// <param name="commandCache">The command cache.</param> public RollbackMessageCommandHandler(IGetTimeFactory getUtcDateQuery, ISqlServerMessageQueueTransportOptionsFactory options, TableNameHelper tableNameHelper, IConnectionInformation connectionInformation, SqlServerCommandStringCache commandCache) { _getUtcDateQuery = getUtcDateQuery; _options = new Lazy <SqlServerMessageQueueTransportOptions>(options.Create); _tableNameHelper = tableNameHelper; _connectionInformation = connectionInformation; _commandCache = commandCache; _rollbackDictionary = new ConcurrentDictionary <string, string>(); }