protected void Update() { if (hasShutdown) { return; } SerilogHttpSink.SendBatch(); DispatchQueue.ExecutePending(); PromiseTimer.Update(Time.deltaTime); TaskManager.Update(Time.deltaTime); }
/// <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(); }