コード例 #1
0
ファイル: AppHub.cs プロジェクト: ly774508966/RSG.UnityApp
        protected void Update()
        {
            if (hasShutdown)
            {
                return;
            }

            SerilogHttpSink.SendBatch();

            DispatchQueue.ExecutePending();

            PromiseTimer.Update(Time.deltaTime);

            TaskManager.Update(Time.deltaTime);
        }
コード例 #2
0
ファイル: AppHub.cs プロジェクト: ly774508966/RSG.UnityApp
        /// <summary>
        /// Called when the application is quiting.
        /// </summary>
        private void OnApplicationQuit()
        {
            Logger.LogInfo("Application is shutting down...");

            hasShutdown = true;


            if (Shutdown != null)
            {
                Shutdown();
            }

            Logger.LogInfo("Flushing log and completed shutdown.");

            SerilogHttpSink.SendBatch();
        }