Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
HubStateServiceDecorator class
The HubStateServiceDecorator class of Novior.MentorAgent.Server.Hubs: Decorates IMentorStateService to forward every AI event to the connected SignalR client…
On this page
Decorates IMentorStateService to forward every AI event to the connected SignalR client via Clients.Client(connectionId).SendAsync(...). Also bridges the IMentorPageContext by applying page context snapshots received from the remote client before each AI call. One instance per SignalR connection scope.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Server.Hubs. Package: Novior.MentorAgent.Server.
public sealed class HubStateServiceDecorator : IDisposable
dotnet add package Novior.MentorAgent.ServerConstructors
Section titled “Constructors”public HubStateServiceDecorator(IMentorStateService stateService, IMentorPageContext pageContext, IHubContext<MentorHub> hubContext, MentorApprovalOwners approvalOwners, ILogger<HubStateServiceDecorator> logger)
Methods
Section titled “Methods”ApplySnapshot
Section titled “ApplySnapshot”public void ApplySnapshot(PageContextSnapshot snapshot)
Dispose
Section titled “Dispose”public void Dispose()
SetConnectionId
Section titled “SetConnectionId”public void SetConnectionId(string connectionId)
