예제 #1
0
        public static DebugJournal FromFile(string journalName, StorageEnvironment env)
        {
            var newJournal = new DebugJournal(journalName, env);

            newJournal.Load(journalName);

            return(newJournal);
        }
예제 #2
0
	    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);
	    }
예제 #3
0
        public static DebugJournal FromFile(string journalName, StorageEnvironment env, bool onlyValueLength = false)
        {
            var newJournal = new DebugJournal(journalName, env)
                             {
                                 RecordOnlyValueLength = onlyValueLength
                             };

            return newJournal;
        }
예제 #4
0
        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));
		}
예제 #6
0
        public static DebugJournal FromFile(string journalName, StorageEnvironment env)
        {
            var newJournal = new DebugJournal(journalName, env);
            newJournal.Load(journalName);

            return newJournal;
        }