public void Dispose()
 {
     lock (ThisLock)
     {
         if (!isDisposed)
         {
             isDisposed = true;
             listener.Dispose();
         }
     }
 }
Beispiel #2
0
 public void Dispose()
 {
     using (ThisLock.TakeLock())
     {
         if (!isDisposed)
         {
             isDisposed = true;
             listener.Dispose();
         }
     }
 }
        void Cleanup()
        {
            lock (ThisLock)
            {
                if (closed)
                {
                    return;
                }

                closed = true;
            }

            if (connectionDemuxer != null)
            {
                connectionDemuxer.Dispose();
            }

            if (connectionListener != null)
            {
                connectionListener.Dispose();
            }

            registration.OnClose(this);
        }
 public void Dispose()
 {
     connectionListener.Dispose();
 }
 internal override void OnClose(TimeSpan timeout)
 {
     connectionDemuxer.Dispose();
     connectionListener.Dispose();
     base.OnClose(timeout);
 }