Interface IRegistry
- Namespace
- Microsoft.AutoGen.RuntimeGateway.Grpc.Abstractions
- Assembly
- Microsoft.AutoGen.RuntimeGateway.Grpc.dll
public interface IRegistry
Methods
GetSubscribedAndHandlingAgentsAsync(string, string)
Gets a list of agents subscribed to and handling the specified topic and event type.
ValueTask<List<string>> GetSubscribedAndHandlingAgentsAsync(string topic, string key)
Parameters
topicstringThe topic to check subscriptions for.
keystringThe event type to check subscriptions for.
Returns
- ValueTask<List<string>>
A task representing the asynchronous operation, with the list of agent IDs as the result.
GetSubscriptionsAsync(GetSubscriptionsRequest)
Gets the subscriptions for a specified agent type.
ValueTask<List<Subscription>> GetSubscriptionsAsync(GetSubscriptionsRequest request)
Parameters
requestGetSubscriptionsRequestThe get subscriptions request.
Returns
- ValueTask<List<Subscription>>
A task representing the asynchronous operation, with the subscriptions as the result.
SubscribeAsync(AddSubscriptionRequest)
Subscribes an agent to a topic.
ValueTask SubscribeAsync(AddSubscriptionRequest request)
Parameters
requestAddSubscriptionRequestThe subscription request.
Returns
- ValueTask
A task representing the asynchronous operation.
Remarks
removing CancellationToken from here as it is not compatible with Orleans Serialization
UnsubscribeAsync(RemoveSubscriptionRequest)
Unsubscribes an agent from a topic.
ValueTask UnsubscribeAsync(RemoveSubscriptionRequest request)
Parameters
requestRemoveSubscriptionRequestThe unsubscription request.
Returns
- ValueTask
A task representing the asynchronous operation.
Remarks
removing CancellationToken from here as it is not compatible with Orleans Serialization