Table of Contents

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

bool

CancellationTokenSource

Atomically reads the current cancellation token source, or null.

public CancellationTokenSource? CancellationTokenSource { get; }

Property Value

CancellationTokenSource

ContentType

public string? ContentType { get; set; }

Property Value

string

CreatedAt

public DateTime CreatedAt { get; set; }

Property Value

DateTime

Id

public string Id { get; set; }

Property Value

string

InstanceId

public string? InstanceId { get; set; }

Property Value

string

ReceiveTask

public Task? ReceiveTask { get; set; }

Property Value

Task

Status

public ConnectionStatus Status { get; set; }

Property Value

ConnectionStatus

Topic

public string? Topic { get; set; }

Property Value

string

Url

public string Url { get; set; }

Property Value

string

WebSocket

public ClientWebSocket? WebSocket { get; set; }

Property Value

ClientWebSocket

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

newCts CancellationTokenSource

Returns

CancellationTokenSource