다음을 통해 공유


ServiceRemotingMessageDispatcher Class

Definition

Provides an implementation of IServiceRemotingMessageHandler that can dispatch messages to the service implementing IService interface.

public class ServiceRemotingMessageDispatcher : IDisposable, Microsoft.ServiceFabric.Services.Remoting.V2.Runtime.IServiceRemotingMessageHandler
type ServiceRemotingMessageDispatcher = class
    interface IServiceRemotingMessageHandler
    interface IDisposable
Public Class ServiceRemotingMessageDispatcher
Implements IDisposable, IServiceRemotingMessageHandler
Inheritance
ServiceRemotingMessageDispatcher
Derived
Implements

Constructors

ServiceRemotingMessageDispatcher(IEnumerable<Type>, ServiceContext, Object, IServiceRemotingMessageBodyFactory)

Initializes a new instance of the ServiceRemotingMessageDispatcher class that uses the given service context and dispatches messages to the given service implementation.

ServiceRemotingMessageDispatcher(ServiceContext, IService, IServiceRemotingMessageBodyFactory)

Initializes a new instance of the ServiceRemotingMessageDispatcher class that uses the given service context and dispatches messages to the given service implementation.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetRemotingMessageBodyFactory()

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

HandleOneWayMessage(IServiceRemotingRequestMessage)

Handles a one way message from the client.

HandleRequestResponseAsync(IServiceRemotingRequestContext, IServiceRemotingRequestMessage)

Handles a message from the client that requires a response from the service.

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.

Applies to