public StructureBuilder(string instanceTag, IBlobSaver blobSaver)
 {
     _instanceTag = instanceTag;
     _blobSaver   = blobSaver;
     _columnData  = OutOrderbookEntry.GetStructure()
                    .Select(p => new ColumnInfo
     {
         ColumnName = p.Item1,
         ColumnType = p.Item2
     })
                    .ToList();
 }
 public RabbitSubscriber(
     ILog log,
     IBlobSaver blobSaver,
     string connectionString,
     string exchangeName,
     string routingKey,
     ushort?prefetchCount = null)
 {
     _log              = log;
     _blobSaver        = blobSaver;
     _connectionString = connectionString;
     _exchangeName     = exchangeName;
     _routingKey       = routingKey;
     _prefetchCount    = prefetchCount.HasValue ? (prefetchCount.Value > 0 ? prefetchCount.Value : _defaultPrefetchCount) : _defaultPrefetchCount;
 }
 public BlobProcessor(
     IBlobReader blobReader,
     IBlobSaver blobSaver,
     IMessageProcessor messageConverter,
     IStructureBuilder structureBuilder,
     ILog log,
     string instanceTag = null,
     string lastBlob    = null)
 {
     _blobReader       = blobReader;
     _blobSaver        = blobSaver;
     _structureBuilder = structureBuilder;
     _messageConverter = messageConverter;
     _log         = log;
     _instanceTag = instanceTag;
     _lastBlob    = lastBlob;
 }
Exemplo n.º 4
0
        public DirectoryProcessor(
            IBlobSaver blobSaver,
            ILog log,
            string fileNameTimeFormat,
            string diskPath,
            string directory)
        {
            _blobSaver          = blobSaver;
            _log                = log;
            _fileNameTimeFormat = fileNameTimeFormat;
            _directory          = directory;
            _directoryPath      = Path.Combine(diskPath, directory);

            if (!Directory.Exists(_directoryPath))
            {
                Directory.CreateDirectory(_directoryPath);
            }

            Directory.SetCurrentDirectory(_directoryPath);
        }
Exemplo n.º 5
0
 public DirectoryProcessor(IBlobSaver blobSaver, ILog log)
 {
     _blobSaver = blobSaver;
     _log       = log;
 }