Caucho.IIS.Server.Close C# (CSharp) Method

Close() private method

private Close ( ) : void
return void
        internal void Close()
        {
            if (_log.IsLoggable(EventLogEntryType.Information))
            _log.Info("Close {0}", this);

              Trace.TraceInformation("Close '{0}'", this);

              lock (this) {
            _idleHead = _idleTail = 0;
              }

              for (int i = 0; i < _idle.Length; i++) {
            HmuxConnection channel;

            lock (this) {
              channel = _idle[i];
              _idle[i] = null;
            }

            if (channel != null)
              channel.CloseImpl();
              }
        }

Same methods

Server::Close ( HmuxConnection connection ) : void

Usage Example

Exemplo n.º 1
0
        public void Close()
        {
            if (_stream != null)
            {
                _pool.Close(this);
            }

            CloseImpl();
        }