Перейти к основному содержимому
Версия: 4.x

DarkWS.Abstractions

DarkWS​

DarkWS.Abstractions Namespace​

Interfaces
IBroadcasterPublishes notifications through the configured backplane. Recipients share an immutable envelope with id @.
IDarkWsAuthenticatorResolves a session for a request or replacement token. Return null on rejection; expiry remains application policy.
IDarkWsBackplaneTransport for broadcast delivery across application instances.
IDarkWsContextAccessorCurrent message context. Uninitialized access throws InvalidOperationException; lifecycle hooks receive context explicitly.
IDarkWsScopeInitializerInitializes scoped application services before each handler invocation.
IDarkWsSessionApplication session identity, principal, and groups. Membership is snapshotted on add or re-authentication.
IWebSocketConnectionPublic connection contract implementable by consumers and test doubles. Send buffers must not be mutated.