public static StorageHandle CreateTemporary() { var storage = new StorageHandle() { FileName = Path.Combine(GetTempDir(), Guid.NewGuid().ToString()), CanWrite = true, DeleteOnClose = true, }; storage.Open(); return(storage); }
public static StorageHandle OpenSession(string fileName, SessionXml session) { var storage = new StorageHandle() { FileName = fileName, LowestAllowedOffset = session.LowestOffset, HighestAllowedOffset = session.HighestOffset, ChunkCount = session.ChunkCount, LinesCountApprox = session.LinesCountApprox, }; storage.Open(); return(storage); }