コード例 #1
0
        private void StopAlgorithmProcessing()
        {
            try
            {
                if ((object)m_subscriber != null)
                {
                    m_subscriber.Stop();
                    m_subscriber.StatusMessage    -= StatusMessageHandler;
                    m_subscriber.ProcessException -= ProcessExceptionHandler;
                    m_subscriber = null;
                }

                if ((object)m_concentrator != null)
                {
                    m_concentrator.Stop();
                    m_concentrator.ProcessException -= ProcessExceptionHandler;
                    m_concentrator = null;
                }

                AlgorithmHostingEnvironment.Shutdown();
            }
            catch (Exception ex)
            {
                HandleException(new InvalidOperationException($"Exception while shutting down algorithm hosting environment: {ex.Message}", ex));
            }
        }
コード例 #2
0
 public void Stop()
 {
     m_subscriber?.Stop();
     m_concentrator?.Stop();
     m_concentrator?.Dispose();
 }