public StreamJournalWriter(IStore storage, EngineConfiguration config) { _config = config; _storage = storage; _journalFormatter = config.CreateFormatter(FormatterUsage.Journal); _rolloverStrategy = _config.CreateRolloverStrategy(); }
public StreamJournalWriter(EngineConfiguration config, Func <ulong, Stream> streamFactory) { _streamProvider = streamFactory; _journalFormatter = config.CreateFormatter(FormatterUsage.Journal); _rolloverStrategy = config.CreateRolloverStrategy(); }
public StreamJournalWriter(EngineConfiguration config, Func<ulong,Stream> streamFactory) { _streamProvider = streamFactory; _journalFormatter = config.CreateFormatter(FormatterUsage.Journal); _rolloverStrategy = config.CreateRolloverStrategy(); }
public void AddStrategy(RolloverStrategy strategy) { _childStrategies.Add(strategy); }