System.Net.Security.NegoState.Close C# (CSharp) Method

Close() private method

private Close ( ) : void
return void
        internal void Close()
        {
            // Mark this instance as disposed.
            _exception = new ObjectDisposedException("NegotiateStream");
            if (_context != null)
            {
                _context.CloseContext();
            }
        }

Usage Example

示例#1
0
        protected override void Dispose(bool disposing)
        {
#if DEBUG
            using (DebugThreadTracking.SetThreadKind(ThreadKinds.User))
            {
#endif
            try
            {
                _negoState.Close();
            }
            finally
            {
                base.Dispose(disposing);
            }
#if DEBUG
        }
#endif
        }