Esempio n. 1
0
        void GenSut()
        {
            _sut?.CancelReservations();
            _persistence?.Dispose();
            _persistence = new FASTERNameIndexPersistence(
                indexName: "StreamNameIndexPersistence",
                logDir: _outputDir,
                firstValue: LogV3SystemStreams.FirstRealStream,
                valueInterval: LogV3SystemStreams.StreamInterval,
                initialReaderCount: 1,
                maxReaderCount: 1,
                enableReadCache: true,
                checkpointInterval: Timeout.InfiniteTimeSpan);

            _sut = new(
                indexName : "StreamNameIndex",
                firstValue : LogV3SystemStreams.FirstRealStream,
                valueInterval : LogV3SystemStreams.StreamInterval,
                existenceFilter : new NoNameExistenceFilter(),
                persistence : _persistence,
                metastreams : new LogV3Metastreams());
        }
Esempio n. 2
0
 public void Dispose()
 {
     _persistence?.Dispose();
     TryDeleteDirectory();
 }