Class WebSocketPayloadProperties
public record WebSocketPayloadProperties : IEquatable<WebSocketPayloadProperties>
- Inheritance
-
WebSocketPayloadProperties
- Implements
- Inherited Members
Constructors
WebSocketPayloadProperties()
public WebSocketPayloadProperties()
WebSocketPayloadProperties(WebSocketPayloadProperties)
protected WebSocketPayloadProperties(WebSocketPayloadProperties original)
Parameters
originalWebSocketPayloadProperties
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
MessageFlags
The flags to apply to the message. Defaults to EndOfMessage.
public WebSocketMessageFlags? MessageFlags { get; set; }
Property Value
MessageType
The type of message to send. Defaults to Text.
public WebSocketMessageType? MessageType { get; set; }
Property Value
RetryHandling
The retry handling to apply to the message. Defaults to Retry.
public WebSocketRetryHandling? RetryHandling { get; set; }
Property Value
Methods
Equals(WebSocketPayloadProperties?)
public virtual bool Equals(WebSocketPayloadProperties? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
WithMessageFlags(WebSocketMessageFlags?)
The flags to apply to the message. Defaults to EndOfMessage.
public WebSocketPayloadProperties WithMessageFlags(WebSocketMessageFlags? messageFlags)
Parameters
messageFlagsWebSocketMessageFlags?
Returns
WithMessageType(WebSocketMessageType?)
The type of message to send. Defaults to Text.
public WebSocketPayloadProperties WithMessageType(WebSocketMessageType? messageType)
Parameters
messageTypeWebSocketMessageType?
Returns
WithRetryHandling(WebSocketRetryHandling?)
The retry handling to apply to the message. Defaults to Retry.
public WebSocketPayloadProperties WithRetryHandling(WebSocketRetryHandling? retryHandling)
Parameters
retryHandlingWebSocketRetryHandling?
Returns
Operators
operator ==(WebSocketPayloadProperties?, WebSocketPayloadProperties?)
public static bool operator ==(WebSocketPayloadProperties? left, WebSocketPayloadProperties? right)
Parameters
Returns
operator !=(WebSocketPayloadProperties?, WebSocketPayloadProperties?)
public static bool operator !=(WebSocketPayloadProperties? left, WebSocketPayloadProperties? right)