private void Initalize(ISerializeJson json) { filename = typeof(T).Name + ".json"; Json = new JsonNewtonsoft(); //Json = new JsonServiceStack(); IndexManager = new IndexManager <T>(Json); FileManager = new FileManager(typeof(T).Name, Json); }
private void Initalize(ISerializeJson json) { Json = json; objectName = typeof(T).Name; filename = objectName + ".index"; if (isoStore.FileExists(filename)) { LoadIndex(); } else { Indexes = new List <Index>(); } }
public void Initalize(string filename, ISerializeJson json) { Json = json; FileName = filename + ".docs"; BlocksFile = filename + ".blocks"; if (isf.FileExists(FileName)) { LoadBlocks(); } else { Blocks = new Dictionary <int, bool>(); ResizeFile(); StoreBlocks(); } }
public void Initalize(string filename, ISerializeJson json) { Json = json; FileName = filename + ".docs"; BlocksFile = filename + ".blocks"; if (isf.FileExists(FileName)) LoadBlocks(); else { Blocks = new Dictionary<int, bool>(); ResizeFile(); StoreBlocks(); } }
public FileManager(string filename, ISerializeJson json) { Initalize(filename, json); }
public IndexManager(ISerializeJson json) { Initalize(json); }