Class GatewaySignalRClient
public sealed class GatewaySignalRClient : IAsyncDisposable
- Inheritance
-
GatewaySignalRClient
- Implements
- Inherited Members
Constructors
GatewaySignalRClient(string)
public GatewaySignalRClient(string gatewayUrl)
Parameters
gatewayUrlstring
Properties
ConnectionError
public string? ConnectionError { get; }
Property Value
IsConnected
public bool IsConnected { get; }
Property Value
Methods
ConnectAsync(CancellationToken)
public Task ConnectAsync(CancellationToken ct = default)
Parameters
Returns
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
StreamChatAsync(string, string, CancellationToken)
Stream chat responses from an agent. Yields chunks as they arrive.
public IAsyncEnumerable<AgentStreamChunk> StreamChatAsync(string agentId, string message, CancellationToken ct = default)
Parameters
agentIdstringmessagestringctCancellationToken
Returns
Events
OnActivityEvent
public event EventHandler<ActivityEventArgs>? OnActivityEvent
Event Type
OnAgentMessage
public event EventHandler<AgentMessageEventArgs>? OnAgentMessage
Event Type
OnChannelStatusChanged
public event EventHandler<ChannelStatusEventArgs>? OnChannelStatusChanged
Event Type
OnConnected
public event EventHandler? OnConnected
Event Type
OnDisconnected
public event EventHandler? OnDisconnected