public static DebugJournal FromFile(string journalName, StorageEnvironment env) { var newJournal = new DebugJournal(journalName, env); newJournal.Load(journalName); return(newJournal); }
public StorageEnvironment(StorageEnvironmentOptions options,string debugJournalName) : this(options) { DebugJournal = new DebugJournal(debugJournalName,this); if(Writer != null) Writer.Dispose(); Writer = new TransactionMergingWriter(this, _cancellationTokenSource.Token, DebugJournal); }
public static DebugJournal FromFile(string journalName, StorageEnvironment env, bool onlyValueLength = false) { var newJournal = new DebugJournal(journalName, env) { RecordOnlyValueLength = onlyValueLength }; return newJournal; }
public static DebugJournal FromFile(string journalName, StorageEnvironment env, bool onlyValueLength = false) { var newJournal = new DebugJournal(journalName, env) { RecordOnlyValueLength = onlyValueLength }; return(newJournal); }
internal TransactionMergingWriter(StorageEnvironment env, CancellationToken cancellationToken, DebugJournal debugJournal = null) { _env = env; _cancellationToken = cancellationToken; _stopWrites.Set(); _debugJournal = debugJournal; _backgroundTask = new Lazy<Task>(() => Task.Factory.StartNew(BackgroundWriter, _cancellationToken, TaskCreationOptions.LongRunning, TaskScheduler.Current)); }
public static DebugJournal FromFile(string journalName, StorageEnvironment env) { var newJournal = new DebugJournal(journalName, env); newJournal.Load(journalName); return newJournal; }