Interface IGateway
- Namespace
- Microsoft.Auto
Gen .RuntimeGateway .Grpc.Abstractions
- Assembly
- Microsoft.AutoGen.RuntimeGateway.Grpc.dll
Defines the gateway interface for handling RPC requests and subscriptions. Note that all of the request types are generated from the proto file.
Methods
GetSubscriptionsAsync(GetSubscriptionsRequest)
Gets the subscriptions asynchronously.
Parameters
request
GetSubscriptions Request The get subscriptions request.
Returns
- Value
Task <List<Subscription>> A task that represents the asynchronous operation. The task result contains the list of subscriptions.
InvokeRequestAsync(RpcRequest)
Invokes a request asynchronously.
Parameters
request
RpcRequest The RPC request.
Returns
- Value
Task <RpcResponse > A task that represents the asynchronous operation. The task result contains the RPC response.
RegisterAgentTypeAsync(RegisterAgentTypeRequest, ServerCallContext)
Registers an agent type asynchronously.
ValueTask<RegisterAgentTypeResponse> RegisterAgentTypeAsync(RegisterAgentTypeRequest request, ServerCallContext context)
Parameters
request
RegisterAgent Type Request The register agent type request.
context
ServerCall Context The server call context.
Returns
- Value
Task <RegisterAgent >Type Response A task that represents the asynchronous operation. The task result contains the register agent type response.
SubscribeAsync(AddSubscriptionRequest)
Subscribes to a topic asynchronously.
Parameters
request
AddSubscription Request The add subscription request.
Returns
- Value
Task <AddSubscription >Response A task that represents the asynchronous operation. The task result contains the add subscription response.
UnsubscribeAsync(RemoveSubscriptionRequest)
Unsubscribes from a topic asynchronously.
Parameters
request
RemoveSubscription Request The remove subscription request.
Returns
- Value
Task <RemoveSubscription >Response A task that represents the asynchronous operation. The task result contains the remove subscription response.