public void Dispose() { if (WebApiApplication != null) { WebApiApplication.Dispose(); } if (MessageQueueListenerManager != null) { MessageQueueListenerManager.Dispose(); } }
void Exit() { try { if (app == null) { return; } Worker.Instance.PauseSearch(); app.Dispose(); app = null; } catch (Exception ex) { Catch.Set(ex); } }