ValueWebSocketReceiveResult Struct

Definition

Representa el resultado de realizar una sola operación ReceiveAsync(Memory<Byte>, CancellationToken) en un elemento WebSocket.Represents the result of performing a single ReceiveAsync(Memory<Byte>, CancellationToken) operation on a WebSocket.

public value class ValueWebSocketReceiveResult
public struct ValueWebSocketReceiveResult
type ValueWebSocketReceiveResult = struct
Public Structure ValueWebSocketReceiveResult
Inheritance
ValueWebSocketReceiveResult

Constructors

ValueWebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)

Inicializa una nueva instancia de la estructura ValueWebSocketReceiveResult.Initializes a new instance of the ValueWebSocketReceiveResult struct. Una instancia de esta estructura representa el resultado de realizar una única operación ReceiveAsync en un elemento WebSocket.An instance of this struct represents the result of performing a single ReceiveAsync operation on a WebSocket.

Properties

Count

Obtiene el número de bytes que ha recibido WebSocket.Gets the number of bytes that the WebSocket received.

EndOfMessage

Indica si el mensaje se ha recibido completamente.Gets whether the message has been received completely.

MessageType

Obtiene el tipo del mensaje actual.Gets the type of the current message.

Applies to