ActorServiceRemotingDispatcher.HandleRequestResponseAsync Method

Definition

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

System.Threading.Tasks.Task<IServiceRemotingResponseMessage>

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>

Parameters

actorDispatchHeaders
ActorRemotingDispatchHeaders
cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<IServiceRemotingResponseMessageBody>

Applies to