private void OnProxyChannelManagerChannelExceptionRaised(object sender, ChannelExceptionRaisedEventArgs e)
        {
            OnAsyncChannelEstablished(new ChannelEstablishedEventArgs(e.ContractInfo, null, e.Exception));

            List <EventHandler <ChannelExceptionRaisedEventArgs> > subscribers;

            if (_channelExceptionRaisedEventSubscribers.TryGetValue(e.ContractInfo.Key, out subscribers))
            {
                foreach (EventHandler <ChannelExceptionRaisedEventArgs> listener in subscribers)
                {
                    try
                    {
                        if (listener != null)
                        {
                            listener(this, e);
                        }
                    }
                    catch (Exception ex)
                    {
                        ExceptionHandler.Handle(ex);
                    }
                }
            }
        }
 private void OnConnectionExceptionRaised(object sender, ChannelExceptionRaisedEventArgs e)
 {
     _isConnected = false;
     _monitor.OnConnectionExceptionRaised(e);
 }
 /// <summary>
 /// 监听服务通道连接状态,当通道发生异常时触发。
 /// </summary>
 /// <param name="e">通道状态参数</param>
 public virtual void OnConnectionExceptionRaised(ChannelExceptionRaisedEventArgs e)
 {
 }
 /// <summary>
 /// 监听服务通道连接状态,当通道发生异常时触发。
 /// </summary>
 /// <param name="e">通道状态参数</param>
 public virtual void OnConnectionExceptionRaised(ChannelExceptionRaisedEventArgs e)
 {
 }