private void Dispose(bool _) { if (_context != null) { SecurityNativeMethods.DeleteSecurityContext(_context); } }
void IDisposable.Dispose() { if (!_new_context) { SecurityNativeMethods.DeleteSecurityContext(_context); } }
private void Dispose(bool _) { if (_context != null) { SecurityNativeMethods.DeleteSecurityContext(_context); } if (OwnsCredentials) { _creds?.Dispose(); } }