コード例 #1
0
        public void Dispose()
        {
            PortToServer.Remove(Port);

            if (m_Disposed)
            {
                return;
            }
            m_Disposed = true;

            if (m_BufferHandle.IsAllocated)
            {
                m_BufferHandle.Free();
            }
            AddressSpace.AddressToMethod.Dispose();
            AddressSpace = null;
            m_Socket.Dispose();
        }
コード例 #2
0
        void Dispose(bool disposing)
        {
            if (m_Disposed)
            {
                return;
            }
            m_Disposed = true;

            PortToServer.Remove(Port);

            if (m_BufferHandle.IsAllocated)
            {
                m_BufferHandle.Free();
            }
            if (disposing)
            {
                AddressSpace.AddressToMethod.Dispose();
                AddressSpace = null;
                m_Socket.Dispose();
            }
        }