public FilePartitionModule(FileStorageConfig fullPath, string[] fileQueues) { _fullPath = fullPath; _fileQueues = fileQueues; DispatchAsEvents(); Quarantine(c => new MemoryQuarantine()); DecayPolicy(TimeSpan.FromMilliseconds(100)); }
public Given_Atomic_Storage_With_Files() { _config = FileStorage.CreateConfig(typeof(Given_Atomic_Scenarios_When_Files).Name); }
public FileQueueWriterFactory(FileStorageConfig account) { _account = account; _endpoint = _account.AccountName; }
public void AddFileSender(FileStorageConfig config, string queueName) { AddFileSender(config, queueName, m => { }); }
public void AddFileSender(FileStorageConfig config, string queueName, Action<SendMessageModule> configure) { var module = new SendMessageModule((context, endpoint) => new FileQueueWriterFactory(config, context.Resolve<IEnvelopeStreamer>()), config.AccountName, queueName); configure(module); _modules += module.Configure; }
public Given_Tx_Scenarios_When_Files() { _config = FileStorage.CreateConfig(GetType().Name); }
public FileQueueWriterFactory(FileStorageConfig account, IEnvelopeStreamer streamer) { _account = account; _streamer = streamer; _endpoint = _account.AccountName; }