110 references to WebSocketCloseStatus
dotnet-svcutil-lib (5)
Microsoft.AspNetCore.Http.Connections (6)
_generated\0\LoggerMessage.g.cs (3)
792private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.WebSockets.WebSocketCloseStatus?, string, global::System.Exception?> __ClientClosedCallback =
793global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.WebSockets.WebSocketCloseStatus?, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "ClientClosed"), "Client closed connection with status code '{Status}' ({Description}). Signaling end-of-input to application.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
800public static partial void ClientClosed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Net.WebSockets.WebSocketCloseStatus? status, string description)
Microsoft.AspNetCore.Http.Connections.Client (10)
Microsoft.AspNetCore.Owin (7)
Microsoft.AspNetCore.TestHost (6)
netstandard (1)
System (1)
System.Net.HttpListener (6)
System.Net.WebSockets (41)
System\Net\WebSockets\ManagedWebSocket.cs (32)
86private WebSocketCloseStatus? _closeStatus;
289public override WebSocketCloseStatus? CloseStatus => _closeStatus;
387public override Task CloseAsync(WebSocketCloseStatus closeStatus, string? statusDescription, CancellationToken cancellationToken)
406public override Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string? statusDescription, CancellationToken cancellationToken)
414private async Task CloseOutputAsyncCore(WebSocketCloseStatus closeStatus, string? statusDescription, bool enterReceiveMutex, CancellationToken cancellationToken)
850await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.ProtocolError, WebSocketError.Faulted, headerErrorMessage).ConfigureAwait(false);
984await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.InvalidPayloadData, WebSocketError.Faulted, SR.net_Websockets_InvalidTextPayload).ConfigureAwait(false);
1082WebSocketCloseStatus closeStatus = WebSocketCloseStatus.NormalClosure;
1089await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.ProtocolError, WebSocketError.Faulted, SR.net_Websockets_ProtocolViolation).ConfigureAwait(false);
1103closeStatus = (WebSocketCloseStatus)BinaryPrimitives.ReadUInt16BigEndian(_receiveBuffer.Span.Slice(_receiveBufferOffset));
1106await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.ProtocolError, WebSocketError.Faulted, SR.net_Websockets_InvalidCloseStatusCodeReceived).ConfigureAwait(false);
1117await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.ProtocolError, WebSocketError.Faulted, SR.net_Websockets_InvalidCloseDescriptionPayload, exc).ConfigureAwait(false);
1244private static bool IsValidCloseStatus(WebSocketCloseStatus closeStatus)
1252if (closeStatus < (WebSocketCloseStatus)1000 || closeStatus >= (WebSocketCloseStatus)5000)
1257if (closeStatus >= (WebSocketCloseStatus)3000)
1264case WebSocketCloseStatus.EndpointUnavailable:
1265case WebSocketCloseStatus.InternalServerError:
1266case WebSocketCloseStatus.InvalidMessageType:
1267case WebSocketCloseStatus.InvalidPayloadData:
1268case WebSocketCloseStatus.MandatoryExtension:
1269case WebSocketCloseStatus.MessageTooBig:
1270case WebSocketCloseStatus.NormalClosure:
1271case WebSocketCloseStatus.PolicyViolation:
1272case WebSocketCloseStatus.ProtocolError:
1273case (WebSocketCloseStatus)1012: // ServiceRestart
1274case (WebSocketCloseStatus)1013: // TryAgainLater
1275case (WebSocketCloseStatus)1014: // BadGateway
1289WebSocketCloseStatus closeStatus, WebSocketError error, string? errorMessage = null, Exception? innerException = null)
1441private async Task CloseAsyncPrivate(WebSocketCloseStatus closeStatus, string? statusDescription, CancellationToken cancellationToken)
1545private async ValueTask SendCloseFrameAsync(WebSocketCloseStatus closeStatus, string? closeStatusDescription, CancellationToken cancellationToken)
System.Net.WebSockets.Client (23)
System.ServiceModel.Http (4)