76 references to ErrorCodes
Microsoft.AspNetCore.Server.HttpSys (76)
AsyncAcceptContext.cs (12)
49if (statusCode != ErrorCodes.ERROR_SUCCESS && 50statusCode != ErrorCodes.ERROR_IO_PENDING) 65if (errorCode != ErrorCodes.ERROR_SUCCESS && 66errorCode != ErrorCodes.ERROR_MORE_DATA) 74if (errorCode == ErrorCodes.ERROR_SUCCESS) 98if (statusCode != ErrorCodes.ERROR_SUCCESS && 99statusCode != ErrorCodes.ERROR_IO_PENDING) 190case (ErrorCodes.ERROR_CONNECTION_INVALID or ErrorCodes.ERROR_INVALID_PARAMETER) when _requestContext.RequestId != 0: 204case ErrorCodes.ERROR_MORE_DATA: 212case ErrorCodes.ERROR_SUCCESS: 220case ErrorCodes.ERROR_IO_PENDING:
HttpSysListener.cs (1)
382if (statusCode != ErrorCodes.ERROR_SUCCESS)
NativeInterop\DisconnectListener.cs (3)
97if (statusCode != ErrorCodes.ERROR_IO_PENDING && 98statusCode != ErrorCodes.ERROR_SUCCESS) 107if (statusCode == ErrorCodes.ERROR_SUCCESS && HttpSysListener.SkipIOCPCallbackOnSuccess)
NativeInterop\HttpApi.cs (1)
60if (statusCode == ErrorCodes.ERROR_SUCCESS)
NativeInterop\HttpServerSessionHandle.cs (1)
38ErrorCodes.ERROR_SUCCESS;
NativeInterop\RequestQueue.cs (4)
52if (_mode == RequestQueueMode.CreateOrAttach && statusCode == ErrorCodes.ERROR_ALREADY_EXISTS) 65if ((flags & PInvoke.HTTP_CREATE_REQUEST_QUEUE_FLAG_OPEN_EXISTING) != 0 && statusCode == ErrorCodes.ERROR_FILE_NOT_FOUND) 69else if (statusCode == ErrorCodes.ERROR_INVALID_NAME) 73else if (statusCode != ErrorCodes.ERROR_SUCCESS)
NativeInterop\ServerSession.cs (1)
17if (statusCode != ErrorCodes.ERROR_SUCCESS)
NativeInterop\UrlGroup.cs (7)
38if (statusCode != ErrorCodes.ERROR_SUCCESS) 94if (statusCode != ErrorCodes.ERROR_SUCCESS) 144if (statusCode != ErrorCodes.ERROR_SUCCESS) 146if (statusCode == ErrorCodes.ERROR_ALREADY_EXISTS) 155if (findUrlStatusCode == ErrorCodes.ERROR_SUCCESS) 165if (statusCode == ErrorCodes.ERROR_ACCESS_DENIED) 197if (statusCode != ErrorCodes.ERROR_SUCCESS)
RequestProcessing\ClientCertLoader.cs (10)
170if (statusCode == ErrorCodes.ERROR_MORE_DATA) 177else if (statusCode == ErrorCodes.ERROR_NOT_FOUND) 182else if (statusCode == ErrorCodes.ERROR_SUCCESS && 187else if (statusCode != ErrorCodes.ERROR_SUCCESS && 188statusCode != ErrorCodes.ERROR_IO_PENDING) 229if (errorCode == ErrorCodes.ERROR_MORE_DATA) 249if (errorCode == ErrorCodes.ERROR_IO_PENDING || 250(errorCode == ErrorCodes.ERROR_SUCCESS && !HttpSysListener.SkipIOCPCallbackOnSuccess)) 256if (errorCode == ErrorCodes.ERROR_NOT_FOUND) 261else if (errorCode != ErrorCodes.ERROR_SUCCESS)
RequestProcessing\RequestContext.cs (3)
201if (statusCode == ErrorCodes.ERROR_CONNECTION_INVALID) 230if (statusCode == ErrorCodes.ERROR_SUCCESS) 312if (statusCode != ErrorCodes.ERROR_SUCCESS)
RequestProcessing\RequestStream.cs (10)
149if (statusCode == ErrorCodes.ERROR_MORE_DATA && size == 0) 154else if (statusCode != ErrorCodes.ERROR_SUCCESS && statusCode != ErrorCodes.ERROR_HANDLE_EOF) 174if (statusCode == ErrorCodes.ERROR_HANDLE_EOF 175|| statusCode != ErrorCodes.ERROR_MORE_DATA && dataRead == 0) 210UpdateAfterRead(ErrorCodes.ERROR_SUCCESS, dataRead); 261if (statusCode != ErrorCodes.ERROR_SUCCESS && statusCode != ErrorCodes.ERROR_IO_PENDING) 264if (statusCode == ErrorCodes.ERROR_HANDLE_EOF) 283else if (statusCode == ErrorCodes.ERROR_SUCCESS &&
RequestProcessing\RequestStreamAsyncResult.cs (4)
72if (errorCode == ErrorCodes.ERROR_MORE_DATA && asyncResult._size == 0) 77else if (errorCode != ErrorCodes.ERROR_SUCCESS && errorCode != ErrorCodes.ERROR_HANDLE_EOF) 99internal void Complete(int read, uint errorCode = ErrorCodes.ERROR_SUCCESS)
RequestProcessing\Response.cs (4)
340if (statusCode == ErrorCodes.ERROR_INVALID_PARAMETER 358if (statusCode != ErrorCodes.ERROR_INVALID_PARAMETER) 365statusCode == ErrorCodes.ERROR_SUCCESS && 666if (errorCode != ErrorCodes.ERROR_SUCCESS)
RequestProcessing\ResponseBody.cs (10)
170if (statusCode != ErrorCodes.ERROR_SUCCESS && statusCode != ErrorCodes.ERROR_HANDLE_EOF 172&& (!endOfRequest || (statusCode != ErrorCodes.ERROR_CONNECTION_INVALID && statusCode != ErrorCodes.ERROR_INVALID_PARAMETER))) 382if (statusCode != ErrorCodes.ERROR_SUCCESS && statusCode != ErrorCodes.ERROR_IO_PENDING) 405if (statusCode == ErrorCodes.ERROR_SUCCESS && HttpSysListener.SkipIOCPCallbackOnSuccess) 705if (statusCode != ErrorCodes.ERROR_SUCCESS && statusCode != ErrorCodes.ERROR_IO_PENDING) 728if (statusCode == ErrorCodes.ERROR_SUCCESS && HttpSysListener.SkipIOCPCallbackOnSuccess)
RequestProcessing\ResponseStreamAsyncResult.cs (2)
236if (errorCode != ErrorCodes.ERROR_SUCCESS && errorCode != ErrorCodes.ERROR_HANDLE_EOF)
UrlPrefixCollection.cs (3)
235if ((ex.ErrorCode != ErrorCodes.ERROR_ACCESS_DENIED 236&& ex.ErrorCode != ErrorCodes.ERROR_SHARING_VIOLATION 237&& ex.ErrorCode != ErrorCodes.ERROR_ALREADY_EXISTS) || index == MaxRetries - 1)