Пример #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;
        }