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); }
internal void Complete(HttpListenerContext context, bool syncCompleted) { this._context = context; this._syncCompleted = syncCompleted; HttpListenerAsyncResult.complete(this); }