示例#1
0
        public UserCache(string accountName)
        {
            string applicationDataDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

            _cacheLocation = System.IO.Path.Combine(applicationDataDirectory, Assembly.GetExecutingAssembly().GetName().Name, string.Format("{0}.json", accountName));
            _cacheData     = new UserCacheData();
        }
示例#2
0
 public UserCache(string accountName)
 {
     string applicationDataDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
     _cacheLocation = System.IO.Path.Combine(applicationDataDirectory, Assembly.GetExecutingAssembly().GetName().Name, string.Format("{0}.json", accountName));
     _cacheData = new UserCacheData();
 }