MethodDispatcherBase Class
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.
This class dispatches requests from the client to the interface/method of the remoted object. This class is used by remoting code generator.
public abstract class MethodDispatcherBase : Microsoft.ServiceFabric.Services.Remoting.Builder.MethodDispatcherBase
type MethodDispatcherBase = class
inherit MethodDispatcherBase
Public MustInherit Class MethodDispatcherBase
Inherits MethodDispatcherBase
- Inheritance
- Derived
Constructors
MethodDispatcherBase() |
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. |
ContinueWith(Task) |
Internal - used by Service remoting (Inherited from MethodDispatcherBase) |
ContinueWithResult<TRetVal>(String, String, Int32, IServiceRemotingMessageBodyFactory, Task<TRetVal>) |
Internal - used by Service remoting |
CreateResponseMessageBody(String, String, Int32, IServiceRemotingMessageBodyFactory, Object) |
This method is used ti create the remoting response from the specified return value |
CreateWrappedResponseBody(Int32, Object) |
Creates Wrapped Response Object for a method |
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. |
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. |
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. |
DispatchAsync(Object, Int32, Object, CancellationToken) |
This method is used to dispatch request to the specified methodId of the interface implemented by the remoted object. |
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. |
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. |
Applies to
Azure SDK for .NET