Share via


ActorMethodDispatcherBase Class

Definition

The class is used by actor remoting code generator to generate a type that dispatches requests to actor object by invoking right method on it.

public abstract class ActorMethodDispatcherBase : Microsoft.ServiceFabric.Services.Remoting.V2.Builder.MethodDispatcherBase
type ActorMethodDispatcherBase = class
    inherit MethodDispatcherBase
Public MustInherit Class ActorMethodDispatcherBase
Inherits MethodDispatcherBase
Inheritance

Constructors

ActorMethodDispatcherBase()

Properties

InterfaceId

Gets the id of the interface supported by this method dispatcher.

(Inherited from MethodDispatcherBase)

Methods

CheckIfItsWrappedRequest(IServiceRemotingRequestMessageBody)

This checks if we are wrapping remoting message or not.

(Inherited from MethodDispatcherBase)
ContinueWith(Task)

Internal - used by Service remoting

(Inherited from MethodDispatcherBase)
ContinueWithResult<TRetVal>(String, String, Int32, IServiceRemotingMessageBodyFactory, Task<TRetVal>)

Internal - used by Service remoting

(Inherited from MethodDispatcherBase)
CreateResponseMessageBody(String, String, Int32, IServiceRemotingMessageBodyFactory, Object)

This method is used ti create the remoting response from the specified return value

(Inherited from MethodDispatcherBase)
CreateWrappedResponseBody(Int32, Object)

Creates Wrapped Response Object for a method

(Inherited from MethodDispatcherBase)
Dispatch(Object, Int32, IServiceRemotingRequestMessageBody)

This method is used to dispatch one way messages to the specified methodId of the interface implemented by the remoted object.

(Inherited from MethodDispatcherBase)
Dispatch(Object, Int32, Object)

This method is used to dispatch one way messages to the specified methodId of the interface implemented by the remoted object.

(Inherited from MethodDispatcherBase)
DispatchAsync(Object, Int32, IServiceRemotingRequestMessageBody, IServiceRemotingMessageBodyFactory, CancellationToken)

Why we pass IServiceRemotingMessageBodyFactory to this function instead of setting at class level?. Since we cache MethodDispatcher for each interface, we can't set IServiceRemotingMessageBodyFactory at class level. These can be cases where multiple IServiceRemotingMessageBodyFactory implmenetation but single dispatcher class. This method is used to dispatch request to the specified methodId of the interface implemented by the remoted object.

(Inherited from MethodDispatcherBase)
DispatchAsync(Object, Int32, Object, CancellationToken)

This method is used to dispatch request to the specified methodId of the interface implemented by the remoted object.

(Inherited from MethodDispatcherBase)
GetMethodName(Int32)

Gets the name of the method that has the specified methodId.

(Inherited from MethodDispatcherBase)
OnDispatch(Int32, Object, IServiceRemotingRequestMessageBody)

This method is implemented by the generated method dispatcher to dispatch one way messages to the specified methodId of the interface implemented by the remoted object.

(Inherited from MethodDispatcherBase)
OnDispatchAsync(Int32, Object, IServiceRemotingRequestMessageBody, IServiceRemotingMessageBodyFactory, CancellationToken)

This method is implemented by the generated method dispatcher to dispatch request to the specified methodId of the interface implemented by the remoted object.

(Inherited from MethodDispatcherBase)

Applies to