internal void Close() { // Mark this instance as disposed. _exception = new ObjectDisposedException("NegotiateStream"); if (_context != null) { _context.CloseContext(); } }
protected override void Dispose(bool disposing) { #if DEBUG using (DebugThreadTracking.SetThreadKind(ThreadKinds.User)) { #endif try { _negoState.Close(); } finally { base.Dispose(disposing); } #if DEBUG } #endif }