public void StopProcessProtocolListenerChannel(string protocolId, int listenerChannelId, bool immediate) { try { if (protocolId == null) { throw new ArgumentNullException("protocolId"); } ProcessProtocolHandler handler = null; lock (this) { handler = this._protocolHandlers[protocolId] as ProcessProtocolHandler; } if (handler != null) { handler.StopListenerChannel(listenerChannelId, immediate); } } catch (Exception exception) { using (new ProcessImpersonationContext()) { Misc.ReportUnhandledException(exception, new string[] { System.Web.SR.GetString("Failure_Stop_Listener_Channel") }); } throw; } }