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
CreatedAt
Gets or sets when this connection was created.
public DateTime CreatedAt { get; set; }
Property Value
Id
Gets or sets the unique identifier for this connection.
public string Id { get; set; }
Property Value
InstanceId
Gets or sets the instance ID that owns this connection.
public string? InstanceId { get; set; }
Property Value
Status
Gets or sets the current connection status.
public ConnectionStatus Status { get; set; }
Property Value
Topic
Gets or sets the Dapr pub/sub topic for publishing messages.
public string? Topic { get; set; }
Property Value
Url
Gets or sets the WebSocket server URL.
public string Url { get; set; }
Property Value
Methods
FromConnection(WebSocketConnection)
Creates a DaprStateStoreEntry from a WebSocketConnection.
public static DaprStateStoreEntry FromConnection(WebSocketConnection connection)
Parameters
connectionWebSocketConnectionThe 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.