예제 #1
0
 /// <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>
 /// <param name="schema">The schema that the queue is using</param>
 public GetTableExistsTransactionQueryPrepareHandler(CommandStringCache commandCache,
                                                     IConnectionInformation connectionInformation, ISqlSchema schema)
 {
     Guard.NotNull(() => commandCache, commandCache);
     _commandCache          = commandCache;
     _connectionInformation = connectionInformation;
     _schema = schema;
 }
        /// <summary>Initializes a new instance of the <see cref="SqlServerMessageQueueSchema"/> class.</summary>
        /// <param name="tableNameHelper">The table name helper. Note this is the base module</param>
        /// <param name="options">The options.</param>
        /// <param name="schema">The schema that the queue is using</param>
        public SqlServerMessageQueueSchema(TableNameHelper tableNameHelper,
                                           ISqlServerMessageQueueTransportOptionsFactory options, ISqlSchema schema)
        {
            Guard.NotNull(() => tableNameHelper, tableNameHelper);
            Guard.NotNull(() => options, options);

            _tableNameHelper = tableNameHelper;
            _options         = new Lazy <SqlServerMessageQueueTransportOptions>(options.Create);
            _schema          = schema;
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlServerTableNameHelper" /> class.
 /// </summary>
 /// <param name="connectionInformation">The connection information.</param>
 public SqlServerTableNameHelper(IConnectionInformation connectionInformation)
 {
     Guard.NotNull(() => connectionInformation, connectionInformation);
     _connectionInformation = connectionInformation;
     _schema = new SqlSchema(connectionInformation);
 }
예제 #4
0
 /// <summary>Initializes a new instance of the <see cref="SqlServerJobSchema"/> class.</summary>
 /// <param name="tableNameHelper">The table name helper. Note this is the base module</param>
 /// <param name="schema">The schema that the queue is using</param>
 public SqlServerJobSchema(TableNameHelper tableNameHelper, ISqlSchema schema)
 {
     _tableNameHelper = tableNameHelper;
     _schema          = schema;
 }
예제 #5
0
 /// <summary>Initializes a new instance of the <see cref="SqlServerCommandStringCache"/> class.</summary>
 /// <param name="tableNameHelper">The table name helper.</param>
 /// <param name="schema">The schema that the queue is using</param>
 public SqlServerCommandStringCache(ITableNameHelper tableNameHelper, ISqlSchema schema) : base(tableNameHelper)
 {
     _schema = schema;
 }