Пример #1
0
        internal void Complete(Exception exception)
        {
            Exception httpListenerException;

            if (!this._inGet || !(exception is ObjectDisposedException))
            {
                httpListenerException = exception;
            }
            else
            {
                httpListenerException = new HttpListenerException(995, "The listener is closed.");
            }
            this._exception = httpListenerException;
            HttpListenerAsyncResult.complete(this);
        }
Пример #2
0
 internal void Complete(HttpListenerContext context, bool syncCompleted)
 {
     this._context       = context;
     this._syncCompleted = syncCompleted;
     HttpListenerAsyncResult.complete(this);
 }