Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                _disposed = true;

                if (disposing)
                {
                    _run = false;
                    _udpServer?.Dispose();
                }
            }
        }
        public void Dispose()
        {
            _serverSokcet?.Dispose();

            _tlsCertificate?.Dispose();
        }
Beispiel #3
0
 public void Dispose()
 {
     _dataSocket?.Dispose();
     _dataSocket = null;
 }
Beispiel #4
0
 public void Dispose()
 {
     ChannelManager.Instance.Clear();
     serverSokcet?.Dispose();
 }