Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public static DME_FileCache GetInstance()
 {
     return defaultInstance ?? (defaultInstance = GetInstance("Default"));
 }