Class WebSocketConnection
- Namespace
- Virtufin.WebSocketManager.Models
- Assembly
- Virtufin.WebSocketManager.dll
public class WebSocketConnection
- Inheritance
-
WebSocketConnection
- Inherited Members
Properties
AutoReconnect
public bool AutoReconnect { get; set; }
Property Value
CancellationTokenSource
Atomically reads the current cancellation token source, or null.
public CancellationTokenSource? CancellationTokenSource { get; }
Property Value
ContentType
public string? ContentType { get; set; }
Property Value
CreatedAt
public DateTime CreatedAt { get; set; }
Property Value
Id
public string Id { get; set; }
Property Value
InstanceId
public string? InstanceId { get; set; }
Property Value
ReceiveTask
public Task? ReceiveTask { get; set; }
Property Value
Status
public ConnectionStatus Status { get; set; }
Property Value
Topic
public string? Topic { get; set; }
Property Value
Url
public string Url { get; set; }
Property Value
WebSocket
public ClientWebSocket? WebSocket { get; set; }
Property Value
Methods
SwapCancellationTokenSource(CancellationTokenSource?)
Atomically replaces the current cancellation token source, returning the
previous one (or null if none). The previous source should be
cancelled by the caller if no other references exist.
public CancellationTokenSource? SwapCancellationTokenSource(CancellationTokenSource? newCts)
Parameters
newCtsCancellationTokenSource