コード例 #1
0
 public static void Setup(string name, string fileCachePath)
 {
     if (instances.ContainsKey(name))
     {
         throw new Exception("Trying to configure FileCachedClient instance \"" + name + "\" twice.");
     }
     instances[name] = new DME_FileCache(fileCachePath);
 }
コード例 #2
0
 public static DME_FileCache GetInstance()
 {
     return defaultInstance ?? (defaultInstance = GetInstance("Default"));
 }