public BufferedSourceReader(ISource source, ITableRule behavior) { if (behavior == null || source == null) { throw new ArgumentNullException(); } _source = source; _behavior = behavior; _buffer = new ManagedCircleBuffer <CatalogImportItem>(BufferSize, BufferBlockingTimeout); _formatter = RowFormatterFactory.BuildTableRowFormatter(behavior); ReadedCount = -1; // ToDo: убрать этот шозанах TotalCount = -1; }
public IRawRecordRowFormatter BuildTableRowFormatter(ITableRule tableRule) { return(BuildTableRowFormatter(tableRule.Columns)); }