/// <summary> /// Flush all commited changes to the underlying Database. /// FlushCommit() needs to be called to persist the operation. /// Will be executed in the global IO context. /// </summary> public static void FlushCommit <T>() where T : IDataHolder { LightDBMapper mapper = ContentMgr.GetMapper(typeof(T)); ServerApp <WCell.RealmServer.RealmServer> .IOQueue.ExecuteInContext((Action)(() => mapper.Flush())); }
/// <summary> /// Flush all commited changes to the underlying Database. /// FlushCommit() needs to be called to persist the operation. /// Will be executed in the global IO context. /// </summary> public static void FlushCommit(Type t) { LightDBMapper mapper = ContentMgr.GetMapper(t); ServerApp <WCell.RealmServer.RealmServer> .IOQueue.ExecuteInContext((Action)(() => mapper.Flush())); }
/// <summary> /// Flush all commited changes to the underlying Database. /// FlushCommit() needs to be called to persist the operation. /// Will be executed in the global IO context. /// </summary> public static void FlushCommit(Type t) { LightDBMapper mapper = GetMapper(t); ServerApp <RealmServer> .IOQueue.ExecuteInContext(() => mapper.Flush()); }