Skip to main content
Table of Contents

Class ClientConnectionIdState

Namespace
Stratara.Shared.Messaging
Assembly
Stratara.Shared.dll

Per-request / per-circuit holder for the client's connection identity. Used by the framework to address SignalR / WebSocket clients (browser tab, mobile session) when a server-side flow needs to push a notification back to the originating channel. Initialized with a synthetic server-{Guid} id so background flows that don't have a real client still have a value.

public sealed class ClientConnectionIdState
Inheritance
ClientConnectionIdState
Inherited Members
Extension Methods

Properties

ConnectionId

The active client connection id for the current request / circuit. Defaults to a synthetic server-{Guid} until SetConnectionId(string?) overrides it with the channel's id.

public string ConnectionId { get; }

Property Value

string

Methods

SetConnectionId(string?)

Overrides the active connection id. Passing null regenerates a synthetic server-{Guid} id (useful when a request has no client channel attached).

public void SetConnectionId(string? connectionId)

Parameters

connectionId string

The new connection id, or null to regenerate a synthetic one.