Class GrpcGatewayService
- Namespace
- Microsoft.Auto
Gen .RuntimeGateway .Grpc
- Assembly
- Microsoft.AutoGen.RuntimeGateway.Grpc.dll
Represents the gRPC service which handles communication between the agent worker and the cluster.
- Inheritance
-
Grpc
Gateway Service
- Inherited Members
Constructors
GrpcGatewayService(GrpcGateway)
Represents the gRPC service which handles communication between the agent worker and the cluster.
Parameters
gateway
GrpcGateway
Methods
AddSubscription(AddSubscriptionRequest, ServerCallContext)
Adds a subscription.
public override Task<AddSubscriptionResponse> AddSubscription(AddSubscriptionRequest request, ServerCallContext context)
Parameters
request
AddSubscription Request The add subscription request.
context
ServerCall Context The server call context.
Returns
- Task<Add
Subscription >Response A task that represents the asynchronous operation. The task result contains the add subscription response.
GetSubscriptions(GetSubscriptionsRequest, ServerCallContext)
Gets the subscriptions.
public override Task<GetSubscriptionsResponse> GetSubscriptions(GetSubscriptionsRequest request, ServerCallContext context)
Parameters
request
GetSubscriptions Request The get subscriptions request.
context
ServerCall Context The server call context.
Returns
- Task<Get
Subscriptions >Response A task that represents the asynchronous operation. The task result contains the get subscriptions response.
OpenChannel(IAsyncStreamReader<Message>, IServerStreamWriter<Message>, ServerCallContext)
Method run on first connect from a worker process.
public override Task OpenChannel(IAsyncStreamReader<Message> requestStream, IServerStreamWriter<Message> responseStream, ServerCallContext context)
Parameters
requestStream
IAsyncStream <Message>Reader The request stream.
responseStream
IServerStream <Message>Writer The response stream.
context
ServerCall Context The server call context.
Returns
- Task
A task that represents the asynchronous operation.
OpenControlChannel(IAsyncStreamReader<ControlMessage>, IServerStreamWriter<ControlMessage>, ServerCallContext)
Open channel for the Control Channel (defined in the proto file).
public override Task OpenControlChannel(IAsyncStreamReader<ControlMessage> requestStream, IServerStreamWriter<ControlMessage> responseStream, ServerCallContext context)
Parameters
requestStream
IAsyncStream <ControlReader Message >The request stream.
responseStream
IServerStream <ControlWriter Message >The response stream.
context
ServerCall Context The server call context.
Returns
- Task
A task that represents the asynchronous operation.
RegisterAgent(RegisterAgentTypeRequest, ServerCallContext)
Registers an agent type (factory)
public override Task<RegisterAgentTypeResponse> RegisterAgent(RegisterAgentTypeRequest request, ServerCallContext context)
Parameters
request
RegisterAgent Type Request The register agent type request.
context
ServerCall Context The server call context.
Returns
- Task<Register
Agent >Type Response A task that represents the asynchronous operation. The task result contains the register agent type response.
RemoveSubscription(RemoveSubscriptionRequest, ServerCallContext)
Removes a subscription.
public override Task<RemoveSubscriptionResponse> RemoveSubscription(RemoveSubscriptionRequest request, ServerCallContext context)
Parameters
request
RemoveSubscription Request The remove subscription request.
context
ServerCall Context The server call context.
Returns
- Task<Remove
Subscription >Response A task that represents the asynchronous operation. The task result contains the remove subscription response.