Example #1
0
        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);
        }
Example #2
0
        private void Initalize(ISerializeJson json)
        {
            Json = json;

            objectName = typeof(T).Name;
            filename   = objectName + ".index";

            if (isoStore.FileExists(filename))
            {
                LoadIndex();
            }
            else
            {
                Indexes = new List <Index>();
            }
        }
Example #3
0
        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();
            }
        }
Example #4
0
        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();
            }
        }
Example #5
0
 public FileManager(string filename, ISerializeJson json)
 {
     Initalize(filename, json);
 }
Example #6
0
 public IndexManager(ISerializeJson json)
 {
     Initalize(json);
 }
Example #7
0
 public FileManager(string filename, ISerializeJson json)
 {
     Initalize(filename, json);
 }