/// <summary> /// Initializes a new instance of the <see cref="BuildMoveToErrorQueueSql" /> class. /// </summary> /// <param name="tableNameHelper">The table name helper.</param> /// <param name="getColumns">The column query.</param> public BuildMoveToErrorQueueSql(TableNameHelper tableNameHelper, IGetColumnsFromTable getColumns) { Guard.NotNull(() => tableNameHelper, tableNameHelper); Guard.NotNull(() => getColumns, getColumns); _tableNameHelper = tableNameHelper; _getColumns = getColumns; }
/// <summary> /// Initializes a new instance of the <see cref="BuildMoveToErrorQueueSql" /> class. /// </summary> /// <param name="tableNameHelper">The table name helper.</param> /// <param name="getColumns">The column query.</param> /// <param name="options">The options.</param> public BuildMoveToErrorQueueSql(ITableNameHelper tableNameHelper, IGetColumnsFromTable getColumns, ITransportOptionsFactory options) { Guard.NotNull(() => tableNameHelper, tableNameHelper); Guard.NotNull(() => getColumns, getColumns); Guard.NotNull(() => options, options); _tableNameHelper = tableNameHelper; _getColumns = getColumns; _options = new Lazy <ITransportOptions>(options.Create); }