Пример #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (null != _context)
                {
                    _context.Dispose();
                    _context = null;
                }

                if (_targetName != null)
                {
                    _targetName.Dispose();
                    _targetName = null;
                }
            }
            base.Dispose(disposing);
        }
Пример #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (null != _context)
                {
                    _context.Dispose();
                    _context = null;
                }

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

                if (_targetNameNtlm != null)
                {
                    _targetNameNtlm.Dispose();
                    _targetNameNtlm = null;
                }
            }
            base.Dispose(disposing);
        }