Show / Hide Table of Contents

    Interface IClientMessageFormatter

    Defines methods that are used to control the conversion of messages into objects and objects into messages for client applications.

    Namespace: Copper.Common.Interface
    Assembly: Copper.Common.dll
    Syntax
    public interface IClientMessageFormatter

    Methods

    View Source

    DeserializeReply(Type, MethodInfo, String)

    Converts a message into a return value and out parameters that are passed back to the calling operation.

    Declaration
    object DeserializeReply(Type contractType, MethodInfo methodInfo, string message)
    Parameters
    Type Name Description
    System.Type contractType

    The type of the service contract.

    System.Reflection.MethodInfo methodInfo

    The method information of the operation.

    System.String message

    The inbound message.

    Returns
    Type Description
    System.Object

    The return value of the operation.

    View Source

    DeserializeReply<TContract>(MethodInfo, String)

    Converts a message into a return value and out parameters that are passed back to the calling operation.

    Declaration
    object DeserializeReply<TContract>(MethodInfo methodInfo, string message)
    Parameters
    Type Name Description
    System.Reflection.MethodInfo methodInfo

    The method information of the operation.

    System.String message

    The inbound message.

    Returns
    Type Description
    System.Object

    The return value of the operation.

    Type Parameters
    Name Description
    TContract

    The type of the service contract.

    View Source

    SerializeRequest(Type, MethodInfo, Object[])

    Converts an System.Object array into an outbound message.

    Declaration
    string SerializeRequest(Type contractType, MethodInfo methodInfo, params object[] parameters)
    Parameters
    Type Name Description
    System.Type contractType

    Type of the service contract.

    System.Reflection.MethodInfo methodInfo

    The method information of the operation.

    System.Object[] parameters

    The parameters passed to the client operation.

    Returns
    Type Description
    System.String

    The message to be sent to the service operation.

    • View Source
    Back to top Generated by DocFX