3 types derived from WebSocketStream
System.Net.WebSockets (3)
System\Net\WebSockets\WebSocketStream.cs (3)
188
private sealed class ReadWriteStream(WebSocket webSocket, WebSocketMessageType writeMessageType, TimeSpan? closeTimeout) :
WebSocketStream
(webSocket)
288
private sealed class WriteMessageStream(WebSocket webSocket, WebSocketMessageType writeMessageType) :
WebSocketStream
(webSocket)
329
private sealed class ReadMessageStream(WebSocket webSocket) :
WebSocketStream
(webSocket)
15 references to WebSocketStream
System.Net.WebSockets (15)
System\Net\WebSockets\WebSocketStream.cs (15)
22
/// Initializes a new instance of the <see cref="
WebSocketStream
"/> class using a specified <see cref="WebSocket"/> instance.
27
/// <summary>Creates a <see cref="
WebSocketStream
"/> that delegates to a wrapped <see cref="WebSocket"/>.</summary>
33
/// <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>
34
public static
WebSocketStream
Create(WebSocket webSocket, WebSocketMessageType writeMessageType, bool ownsWebSocket = false)
45
/// <summary>Creates a <see cref="
WebSocketStream
"/> that delegates to a wrapped <see cref="WebSocket"/>.</summary>
48
/// <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>
49
/// <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>
50
public static
WebSocketStream
Create(WebSocket webSocket, WebSocketMessageType writeMessageType, TimeSpan closeTimeout)
62
/// <summary>Creates a <see cref="
WebSocketStream
"/> that writes a single message to the underlying <see cref="WebSocket"/>.</summary>
69
/// <returns>A new instance of <see cref="
WebSocketStream
"/> that forwards writes on the <see cref="Stream"/> to the underlying <see cref="WebSocket"/>.</returns>
70
public static
WebSocketStream
CreateWritableMessageStream(WebSocket webSocket, WebSocketMessageType writeMessageType)
78
/// <summary>Creates a <see cref="
WebSocketStream
"/> that reads a single message from the underlying <see cref="WebSocket"/>.</summary>
80
/// <returns>A new instance of <see cref="
WebSocketStream
"/> that forwards reads on the <see cref="Stream"/> to the underlying <see cref="WebSocket"/>.</returns>
85
public static
WebSocketStream
CreateReadableMessageStream(WebSocket webSocket)
92
/// <summary>Gets the underlying <see cref="WebSocket"/> wrapped by this <see cref="
WebSocketStream
"/>.</summary>