Exemple #1
0
 public void Dispose()
 {
     if (eioHandlerCb != null)
     {
         pulse.Dispose();
         eioHandlerCb = null;
         outstanding  = null;
         GC.SuppressFinalize(this);
     }
 }
Exemple #2
0
        public void Dispose()
        {
            if (idle_watcher != null)
            {
                idle_watcher.Dispose();
                idle_watcher = null;
            }

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

            if (done_poll_watcher != null)
            {
                want_poll_watcher.Dispose();
                done_poll_watcher = null;
            }
        }
Exemple #3
0
        public void Dispose()
        {
            Socket = null;

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

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