Exemple #1
0
        /// <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()));
        }
Exemple #2
0
        /// <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()));
        }
Exemple #3
0
        /// <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());
        }