예제 #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);
        }
예제 #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>();
            }
        }
예제 #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();
            }
        }
예제 #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();
            }
        }
예제 #5
0
 public FileManager(string filename, ISerializeJson json)
 {
     Initalize(filename, json);
 }
예제 #6
0
 public IndexManager(ISerializeJson json)
 {
     Initalize(json);
 }
예제 #7
0
 public FileManager(string filename, ISerializeJson json)
 {
     Initalize(filename, json);
 }