public void Close() { if (m_instance != null) { m_instance = null; } m_SocketClient?.Close(); }
public static TcpClientMgr GetInstance() { if (TcpClientMgr.m_instance == null) { object syslock = TcpClientMgr.syslock; lock (syslock) { if (TcpClientMgr.m_instance == null) { TcpClientMgr.m_instance = new TcpClientMgr(); } } } return(TcpClientMgr.m_instance); }