Interface IRegistry
- Namespace
- Microsoft.Auto
Gen .RuntimeGateway .Grpc.Abstractions
- Assembly
- Microsoft.AutoGen.RuntimeGateway.Grpc.dll
Methods
GetSubscribedAndHandlingAgentsAsync(string, string)
Gets a list of agents subscribed to and handling the specified topic and event type.
Parameters
topic
stringThe topic to check subscriptions for.
key
stringThe event type to check subscriptions for.
Returns
- Value
Task <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.
Parameters
request
GetSubscriptions Request The get subscriptions request.
Returns
- Value
Task <List<Subscription>> A task representing the asynchronous operation, with the subscriptions as the result.
SubscribeAsync(AddSubscriptionRequest)
Subscribes an agent to a topic.
Parameters
request
AddSubscription Request The subscription request.
Returns
- Value
Task 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.
Parameters
request
RemoveSubscription Request The unsubscription request.
Returns
- Value
Task A task representing the asynchronous operation.
Remarks
removing CancellationToken from here as it is not compatible with Orleans Serialization