示例#1
0
        protected void Update()
        {
            if (hasShutdown)
            {
                return;
            }

            SerilogHttpSink.SendBatch();

            DispatchQueue.ExecutePending();

            PromiseTimer.Update(Time.deltaTime);

            TaskManager.Update(Time.deltaTime);
        }
示例#2
0
        /// <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();
        }