Beispiel #1
0
 public void Destroy()
 {
     foreach (var obj in m_app_servers)
     {
         obj.Value.Destroy();
     }
     m_app_servers.Clear();
     if (m_net_socket != null)
     {
         m_net_socket.Destroy();
         m_net_socket = null;
     }
 }
 public void Destroy()
 {
     this.UnRegisterEvent();
     if (m_msg_proc != null)
     {
         m_msg_proc.Destroy();
         m_msg_proc = null;
     }
     if (m_net_socket != null)
     {
         m_net_socket.Destroy();
         m_net_socket = null;
     }
 }