ActorServiceRemotingDispatcher.HandleRequestResponseAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HandleRequestResponseAsync(IServiceRemotingRequestContext, IServiceRemotingRequestMessage) |
Dispatches the messages received from the client to the actor service methods or the actor methods. This can be used by user where they know interfaceId and MethodId for the method to dispatch to . |
HandleRequestResponseAsync(ActorRemotingDispatchHeaders, IServiceRemotingRequestMessageBody, CancellationToken) |
Dispatches the messages received from the client to the actor service methods or the actor methods. This can be be used by user as an independent dispatcher like short-circuiting. |
HandleRequestResponseAsync(IServiceRemotingRequestContext, IServiceRemotingRequestMessage)
Dispatches the messages received from the client to the actor service methods or the actor methods. This can be used by user where they know interfaceId and MethodId for the method to dispatch to .
public override System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessage> HandleRequestResponseAsync (Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingRequestContext requestContext, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingRequestMessage requestMessage);
override this.HandleRequestResponseAsync : Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingRequestContext * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingRequestMessage -> System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessage>
Public Overrides Function HandleRequestResponseAsync (requestContext As IServiceRemotingRequestContext, requestMessage As IServiceRemotingRequestMessage) As Task(Of IServiceRemotingResponseMessage)
Parameters
- requestContext
- IServiceRemotingRequestContext
Request context that allows getting the callback channel if required.
- requestMessage
- IServiceRemotingRequestMessage
Remoting message.
Returns
A Task representing the asynchronous operation. The result of the task is the response for the received request.
Applies to
HandleRequestResponseAsync(ActorRemotingDispatchHeaders, IServiceRemotingRequestMessageBody, CancellationToken)
Dispatches the messages received from the client to the actor service methods or the actor methods. This can be be used by user as an independent dispatcher like short-circuiting.
public System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessageBody> HandleRequestResponseAsync (Microsoft.ServiceFabric.Actors.Remoting.V2.ActorRemotingDispatchHeaders actorDispatchHeaders, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingRequestMessageBody requestBody, System.Threading.CancellationToken cancellationToken);
override this.HandleRequestResponseAsync : Microsoft.ServiceFabric.Actors.Remoting.V2.ActorRemotingDispatchHeaders * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingRequestMessageBody * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessageBody>
Public Function HandleRequestResponseAsync (actorDispatchHeaders As ActorRemotingDispatchHeaders, requestBody As IServiceRemotingRequestMessageBody, cancellationToken As CancellationToken) As Task(Of IServiceRemotingResponseMessageBody)
Parameters
- actorDispatchHeaders
- ActorRemotingDispatchHeaders
Request Message headers.
- requestBody
- IServiceRemotingRequestMessageBody
Request message body.
- cancellationToken
- CancellationToken
Cancellation token to cancel the request
Returns
A Task representing the asynchronous operation. The result of the task is the response message body for the received request.