MentorAgent Docs
Menu

Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.

ReferencePackage: Novior.MentorAgent.Server

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.

Namespace: Novior.MentorAgent.Server.Hubs. Package: Novior.MentorAgent.Server.

public sealed class HubStateServiceDecorator : IDisposable

Terminal
dotnet add package Novior.MentorAgent.Server

public HubStateServiceDecorator(IMentorStateService stateService, IMentorPageContext pageContext, IHubContext<MentorHub> hubContext, MentorApprovalOwners approvalOwners, ILogger<HubStateServiceDecorator> logger)

public void ApplySnapshot(PageContextSnapshot snapshot)

public void Dispose()

public void SetConnectionId(string connectionId)