예제 #1
0
 public void Disconnect()
 {
     try
     {
         IProtocol protocol = protocolManagementService[ISERVER_IDENTIFIER];
         if (protocol.State == ChannelState.Opened)
         {
             protocol.BeginClose();
         }
         LogMessage("断开成功");
     }
     catch (Exception e)
     {
         LogException(e);
     }
 }