ServiceRemotingDataContractSerializationProvider.CreateResponseMessageSerializer Method
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.
Creates IServiceRemotingResponseMessageBodySerializer for a serviceInterface using DataContract implementation
public Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessageBodySerializer CreateResponseMessageSerializer (Type serviceInterfaceType, System.Collections.Generic.IEnumerable<Type> methodReturnTypes, System.Collections.Generic.IEnumerable<Type> wrappedMessageTypes = default);
abstract member CreateResponseMessageSerializer : Type * seq<Type> * seq<Type> -> Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessageBodySerializer
override this.CreateResponseMessageSerializer : Type * seq<Type> * seq<Type> -> Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessageBodySerializer
Public Function CreateResponseMessageSerializer (serviceInterfaceType As Type, methodReturnTypes As IEnumerable(Of Type), Optional wrappedMessageTypes As IEnumerable(Of Type) = Nothing) As IServiceRemotingResponseMessageBodySerializer
Parameters
- serviceInterfaceType
- Type
The remoted service interface.
- methodReturnTypes
- IEnumerable<Type>
The return types of all of the methods of the specified interface.
- wrappedMessageTypes
- IEnumerable<Type>
Wrapped Response Types for all remoting methods
Returns
An instance of the IServiceRemotingResponseMessageBodySerializer that can serialize the service remoting response message body to a messaging body for transferring over the transport.