Example #1
0
        private void InitDataAdapter()
        {
            string configPath = ReturnConfigPath();

            var drive = new DriveInfo(_driverLetter);
            if (drive.IsReady)
            {
                if (!Directory.Exists(configPath))
                {
                    Directory.CreateDirectory(configPath);
                }

                DataAdapter = new JsonFileDataAdapter(configPath);
            }
            else
            {
                DataAdapter = new EmptyDataAdapter();
            }
        }
Example #2
0
 public MemoryContextHandler()
 {
     DataAdapter = new EmptyDataAdapter();
 }