Beispiel #1
0
 public override void Close()
 {
     //base.Close();
     if (ssl != null)
     {
         ssl.Dispose();
         ssl = null;
     }
     if (sslContext != null)
     {
         sslContext.Dispose();
         sslContext = null;
     }
 }
Beispiel #2
0
        public override void Close()
        {
            if (disposed)
            {
                return;
            }

            if (ssl != null)
            {
                ssl.Dispose();
                ssl = null;
            }
            if (sslContext != null)
            {
                sslContext.Dispose();
                sslContext = null;
            }

            base.Close();
            this.Dispose();
        }