Table of Contents

Class DaprStateStoreEntry

Namespace
Virtufin.WebSocketManager.Services
Assembly
Virtufin.WebSocketManager.dll

Represents a WebSocket connection entry stored in Dapr state store.

public class DaprStateStoreEntry
Inheritance
DaprStateStoreEntry
Inherited Members

Properties

AutoReconnect

Gets or sets whether the connection should automatically reconnect on failure.

public bool AutoReconnect { get; set; }

Property Value

bool

CreatedAt

Gets or sets when this connection was created.

public DateTime CreatedAt { get; set; }

Property Value

DateTime

Id

Gets or sets the unique identifier for this connection.

public string Id { get; set; }

Property Value

string

InstanceId

Gets or sets the instance ID that owns this connection.

public string? InstanceId { get; set; }

Property Value

string

Status

Gets or sets the current connection status.

public ConnectionStatus Status { get; set; }

Property Value

ConnectionStatus

Topic

Gets or sets the Dapr pub/sub topic for publishing messages.

public string? Topic { get; set; }

Property Value

string

Url

Gets or sets the WebSocket server URL.

public string Url { get; set; }

Property Value

string

Methods

FromConnection(WebSocketConnection)

Creates a DaprStateStoreEntry from a WebSocketConnection.

public static DaprStateStoreEntry FromConnection(WebSocketConnection connection)

Parameters

connection WebSocketConnection

The WebSocket connection to convert.

Returns

DaprStateStoreEntry

A new DaprStateStoreEntry instance.

ToConnection()

Converts this entry to a WebSocketConnection.

public WebSocketConnection ToConnection()

Returns

WebSocketConnection

A new WebSocketConnection instance.