54 references to WebSocketCloseStatus
System (23)
net\System\Net\WebSockets\ClientWebSocket.cs (3)
58
public override
WebSocketCloseStatus
? CloseStatus
335
public override Task CloseAsync(
WebSocketCloseStatus
closeStatus, string statusDescription,
342
public override Task CloseOutputAsync(
WebSocketCloseStatus
closeStatus, string statusDescription,
net\System\Net\WebSockets\WebSocket.cs (3)
20
public abstract Nullable<
WebSocketCloseStatus
> CloseStatus { get; }
128
public abstract Task CloseAsync(
WebSocketCloseStatus
closeStatus,
131
public abstract Task CloseOutputAsync(
WebSocketCloseStatus
closeStatus,
net\System\Net\WebSockets\WebSocketBase.cs (10)
65
private Nullable<
WebSocketCloseStatus
> m_CloseStatus;
159
public override Nullable<
WebSocketCloseStatus
> CloseStatus
508
public override Task CloseOutputAsync(
WebSocketCloseStatus
closeStatus,
517
private async Task CloseOutputAsyncCore(
WebSocketCloseStatus
closeStatus,
754
public override Task CloseAsync(
WebSocketCloseStatus
closeStatus,
762
private async Task CloseAsyncCore(
WebSocketCloseStatus
closeStatus,
1510
private void FinishOnCloseReceived(
WebSocketCloseStatus
closeStatus,
2015
WebSocketCloseStatus
closeStatus;
2152
internal
WebSocketCloseStatus
CloseStatus { get; set; }
2161
if (CloseStatus ==
WebSocketCloseStatus
.Empty)
net\System\Net\WebSockets\WebSocketBuffer.cs (2)
405
out
WebSocketCloseStatus
closeStatus,
411
closeStatus = (
WebSocketCloseStatus
)buffer.CloseStatus.CloseStatus;
net\System\Net\WebSockets\WebSocketHelpers.cs (3)
412
internal static void ValidateCloseStatus(
WebSocketCloseStatus
closeStatus, string statusDescription)
414
if (closeStatus ==
WebSocketCloseStatus
.Empty && !string.IsNullOrEmpty(statusDescription))
418
WebSocketCloseStatus
.Empty),
net\System\Net\WebSockets\WebSocketReceiveResult.cs (2)
20
Nullable<
WebSocketCloseStatus
> closeStatus,
38
public Nullable<
WebSocketCloseStatus
> CloseStatus { get; private set; }
System.ServiceModel (8)
System\ServiceModel\Channels\IWebsocketCloseDetails.cs (2)
11
WebSocketCloseStatus
? InputCloseStatus { get; }
15
void SetOutputCloseStatus(
WebSocketCloseStatus
closeStatus, string closeStatusDescription);
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (6)
1505
WebSocketCloseStatus
outputCloseStatus =
WebSocketCloseStatus
.NormalClosure;
1507
WebSocketCloseStatus
? inputCloseStatus;
1510
public
WebSocketCloseStatus
? InputCloseStatus
1536
internal
WebSocketCloseStatus
OutputCloseStatus
1552
public void SetOutputCloseStatus(
WebSocketCloseStatus
closeStatus, string closeStatusDescription)
System.Web (23)
WebSockets\AspNetWebSocket.cs (17)
79
private const
WebSocketCloseStatus
CLOSE_STATUS_NOT_SET = (
WebSocketCloseStatus
)(-1); // used as a 'null' placeholder for _closeStatus since Nullable<T> access not guaranteed atomic
80
private
WebSocketCloseStatus
_closeStatus = CLOSE_STATUS_NOT_SET;
114
public override
WebSocketCloseStatus
? CloseStatus {
118
WebSocketCloseStatus
closeStatus = _closeStatus;
221
public override Task CloseAsync(
WebSocketCloseStatus
closeStatus, string statusDescription, CancellationToken cancellationToken) {
225
private Func<Task> CloseAsyncImpl(
WebSocketCloseStatus
closeStatus, string statusDescription, CancellationToken cancellationToken, bool performValidation = true) {
295
public override Task CloseOutputAsync(
WebSocketCloseStatus
closeStatus, string statusDescription, CancellationToken cancellationToken) {
299
private Func<Task> CloseOutputAsyncImpl(
WebSocketCloseStatus
closeStatus, string statusDescription, CancellationToken cancellationToken, bool performValidation = true) {
477
internal static void ValidateCloseStatusCodeAndDescription(
WebSocketCloseStatus
closeStatus, ref string statusDescription) {
482
if (closeStatus < (
WebSocketCloseStatus
)1000
483
|| closeStatus > (
WebSocketCloseStatus
)UInt16.MaxValue
484
|| closeStatus == (
WebSocketCloseStatus
)1004
485
|| closeStatus == (
WebSocketCloseStatus
)1006
486
|| closeStatus == (
WebSocketCloseStatus
)1010
487
|| closeStatus == (
WebSocketCloseStatus
)1015) {
491
if (closeStatus ==
WebSocketCloseStatus
.Empty) {
WebSockets\IWebSocketPipe.cs (1)
26
Task WriteCloseFragmentAsync(
WebSocketCloseStatus
closeStatus, string statusDescription);
WebSockets\WebSocketPipe.cs (5)
85
public Task WriteCloseFragmentAsync(
WebSocketCloseStatus
closeStatus, string statusDescription) {
129
WebSocketCloseStatus
? closeStatus = null;
136
WebSocketCloseStatus
statusCode;
189
private void GetCloseStatus(out
WebSocketCloseStatus
closeStatus, out string closeStatusDescription) {
206
closeStatus = (
WebSocketCloseStatus
)statusCode;