Exemple #1
0
        public void StopAcceptingClientMessages()
        {
            if (log.IsVerbose) log.Verbose("StopClientMessages");
            if (Gateway == null) return;

            try
            {
                Gateway.Stop();
            }
            catch (Exception exc) { log.Error(ErrorCode.Runtime_Error_100109, "Stop failed.", exc); }
            Gateway = null;
        }
Exemple #2
0
        public void StopAcceptingClientMessages()
        {
            if (log.IsEnabled(LogLevel.Debug))
            {
                log.LogDebug("StopClientMessages");
            }

            try
            {
                Gateway?.Stop();
            }
            catch (Exception exc)
            {
                log.LogError((int)ErrorCode.Runtime_Error_100109, exc, "Stop failed");
            }
        }
Exemple #3
0
        public void StopAcceptingClientMessages()
        {
            if (log.IsEnabled(LogLevel.Debug))
            {
                log.Debug("StopClientMessages");
            }
            if (Gateway == null)
            {
                return;
            }

            try
            {
                Gateway.Stop();
            }
            catch (Exception exc) { log.Error(ErrorCode.Runtime_Error_100109, "Stop failed.", exc); }
            Gateway = null;
        }