3 types derived from WebSocketStream
System.Net.WebSockets (3)
System\Net\WebSockets\WebSocketStream.cs (3)
189
private sealed class ReadWriteStream(WebSocket webSocket, WebSocketMessageType writeMessageType, TimeSpan? closeTimeout) :
WebSocketStream
(webSocket)
289
private sealed class WriteMessageStream(WebSocket webSocket, WebSocketMessageType writeMessageType) :
WebSocketStream
(webSocket)
330
private sealed class ReadMessageStream(WebSocket webSocket) :
WebSocketStream
(webSocket)
15 references to WebSocketStream
System.Net.WebSockets (15)
System\Net\WebSockets\WebSocketStream.cs (15)
23
/// Initializes a new instance of the <see cref="
WebSocketStream
"/> class using a specified <see cref="WebSocket"/> instance.
28
/// <summary>Creates a <see cref="
WebSocketStream
"/> that delegates to a wrapped <see cref="WebSocket"/>.</summary>
34
/// <returns>A new instance of <see cref="
WebSocketStream
"/> that forwards reads and writes on the <see cref="Stream"/> to the underlying <see cref="WebSocket"/>.</returns>
35
public static
WebSocketStream
Create(WebSocket webSocket, WebSocketMessageType writeMessageType, bool ownsWebSocket = false)
46
/// <summary>Creates a <see cref="
WebSocketStream
"/> that delegates to a wrapped <see cref="WebSocket"/>.</summary>
49
/// <param name="closeTimeout">The amount of time that disposing the <see cref="
WebSocketStream
"/> will wait for a graceful closing of the <see cref="WebSocket"/>'s output.</param>
50
/// <returns>A new instance of <see cref="
WebSocketStream
"/> that forwards reads and writes on the <see cref="Stream"/> to the underlying <see cref="WebSocket"/>.</returns>
51
public static
WebSocketStream
Create(WebSocket webSocket, WebSocketMessageType writeMessageType, TimeSpan closeTimeout)
63
/// <summary>Creates a <see cref="
WebSocketStream
"/> that writes a single message to the underlying <see cref="WebSocket"/>.</summary>
70
/// <returns>A new instance of <see cref="
WebSocketStream
"/> that forwards writes on the <see cref="Stream"/> to the underlying <see cref="WebSocket"/>.</returns>
71
public static
WebSocketStream
CreateWritableMessageStream(WebSocket webSocket, WebSocketMessageType writeMessageType)
79
/// <summary>Creates a <see cref="
WebSocketStream
"/> that reads a single message from the underlying <see cref="WebSocket"/>.</summary>
81
/// <returns>A new instance of <see cref="
WebSocketStream
"/> that forwards reads on the <see cref="Stream"/> to the underlying <see cref="WebSocket"/>.</returns>
86
public static
WebSocketStream
CreateReadableMessageStream(WebSocket webSocket)
93
/// <summary>Gets the underlying <see cref="WebSocket"/> wrapped by this <see cref="
WebSocketStream
"/>.</summary>