Share via


IServiceRemotingMessageSerializationProvider.CreateResponseMessageSerializer Method

Definition

Creates a serializer that can serialize and deserialize the remoting response message bodies for the specified service interface.

public Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessageBodySerializer CreateResponseMessageSerializer (Type serviceInterfaceType, System.Collections.Generic.IEnumerable<Type> responseWrappedTypes, System.Collections.Generic.IEnumerable<Type> responseBodyTypes = default);
abstract member CreateResponseMessageSerializer : Type * seq<Type> * seq<Type> -> Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessageBodySerializer
Public Function CreateResponseMessageSerializer (serviceInterfaceType As Type, responseWrappedTypes As IEnumerable(Of Type), Optional responseBodyTypes As IEnumerable(Of Type) = Nothing) As IServiceRemotingResponseMessageBodySerializer

Parameters

serviceInterfaceType
Type

User service interface

responseWrappedTypes
IEnumerable<Type>

Wrapped Response object Types for all methods

responseBodyTypes
IEnumerable<Type>

Return Types for all the methods in the serviceInterfaceType

Returns

An IServiceRemotingResponseMessageBodySerializer that can serialize and deserialize the remoting response message bodies created by the custom service remoting message body factory.

Applies to