Dela via


ActorServiceRemotingDispatcher Class

Definition

Provides an implementation of IServiceRemotingMessageHandler that can dispatch messages to an actor service and to the actors hosted in the service.

public class ActorServiceRemotingDispatcher : Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.ServiceRemotingMessageDispatcher
type ActorServiceRemotingDispatcher = class
    inherit ServiceRemotingMessageDispatcher
Public Class ActorServiceRemotingDispatcher
Inherits ServiceRemotingMessageDispatcher
Inheritance
ActorServiceRemotingDispatcher

Constructors

ActorServiceRemotingDispatcher(ActorService, IServiceRemotingMessageBodyFactory)

Initializes a new instance of the ActorServiceRemotingDispatcher class. This can dispatch messages to an actor service and to the actors hosted in the service..

Methods

Dispose() (Inherited from ServiceRemotingMessageDispatcher)
GetRemotingMessageBodyFactory()

Gets the factory used for creating the remoting response message bodies.

(Inherited from ServiceRemotingMessageDispatcher)
HandleOneWayMessage(IServiceRemotingRequestMessage)

Handles a one way message from the client.

(Inherited from ServiceRemotingMessageDispatcher)
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 .

HandleRequestResponseAsync(ServiceRemotingDispatchHeaders, IServiceRemotingRequestMessageBody, CancellationToken)

Handles a message from the client that requires a response from the service. This Api can be used for the short-circuiting where client is in same process as service. Client can now directly dispatch request to service instead of using ServiceProxy.

(Inherited from ServiceRemotingMessageDispatcher)

Applies to