Dispose() public method

public Dispose ( ) : void
return void
示例#1
0
文件: PgmSender.cs 项目: zad15c/netmq
        private void Destroy()
        {
            if (m_state == State.Delaying)
            {
                CancelTimer(ReconnectTimerId);
            }

            m_pgmSocket.Dispose();
            RemoveSocket(m_socket);
        }
示例#2
0
文件: PgmSender.cs 项目: r618/netmq
        private void Destroy()
        {
            if (m_state == State.Delaying)
            {
                CancelTimer(ReconnectTimerId);
            }

            m_pgmSocket.Dispose();
            RemoveSocket(m_socket);
            m_encoder.SetMsgSource(null);
        }