示例#1
0
        /// <summary>
        /// Called to stop the service. The controller is disposed.
        /// </summary>
        protected override void OnStop()
        {
            try
            {
                if (m_StaticObjects != null)
                {
                    m_StaticObjects.Dispose();
                    m_StaticObjects = null;
                }
            }
            catch (System.Exception ex)
            {
                DiagnosticsHelper.LogMessage(DiagSeverity.ApplicationFatal, "Failed to stop Stack Hash service " + ex.ToString());
                throw;
            }

            AppDomain.CurrentDomain.UnhandledException -= new UnhandledExceptionEventHandler(UnhandledException);
        }
示例#2
0
 private void TestHost_FormClosing(object sender, FormClosingEventArgs e)
 {
     m_StaticObjects.Dispose();
 }