public void Dispose() { Cache = null; CacheFactory.Dispose(); }
/// <summary> /// The game service stop. /// </summary> public static void Stop() { CacheFactory.UpdateNotify(true); CacheFactory.Dispose(); Interlocked.Exchange(ref _isRunning, 0); }
//private static void LoadGameEntitySchema() //{ // SchemaTable schema; // if (EntitySchemaSet.TryGet<SensitiveWord>(out schema)) // { // schema.ConnectionProviderType = ConfigManger.Provider.ConnectionSetting.ProviderTypeName; // schema.ConnectionString = ConfigManger.Provider.ConnectionString; // } //} /// <summary> /// The game service stop. /// </summary> public static void Stop() { CacheFactory.UpdateNotify(true); CacheFactory.Dispose(); IsRunning = false; }