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); }
public static DME_FileCache GetInstance() { return defaultInstance ?? (defaultInstance = GetInstance("Default")); }