private void StartListen(bool isReconnecting)
 {
     this.listenerProxy = new SharedListenerProxy(this);
     if (isReconnecting)
     {
         this.reconnectEvent.Set();
     }
     this.listenerProxy.Open(isReconnecting);
     lock (this.ThisLock)
     {
         if ((this.state == CommunicationState.Created) || (this.state == CommunicationState.Opening))
         {
             this.state = CommunicationState.Opened;
         }
     }
 }
 private void StartListen(bool isReconnecting)
 {
     this.listenerProxy = new SharedListenerProxy(this);
     if (isReconnecting)
     {
         this.reconnectEvent.Set();
     }
     this.listenerProxy.Open(isReconnecting);
     lock (this.ThisLock)
     {
         if ((this.state == CommunicationState.Created) || (this.state == CommunicationState.Opening))
         {
             this.state = CommunicationState.Opened;
         }
     }
 }