Show / Hide Table of Contents

    Interface IDispatchMessageFormatter

    Defines methods that deserialize request messages and serialize response messages in a service application.

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

    Methods

    View Source

    DeserializeRequest(IEnumerable<Type>, String)

    Deserializes a message into a RequestInfo.

    Declaration
    RequestInfo DeserializeRequest(IEnumerable<Type> contractTypes, string message)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Type> contractTypes

    The service contract types.

    System.String message

    The message.

    Returns
    Type Description
    RequestInfo

    A RequestInfo based on the message.

    View Source

    DeserializeRequest<TContract>(String)

    Deserializes a message into a RequestInfo.

    Declaration
    RequestInfo DeserializeRequest<TContract>(string message)
    Parameters
    Type Name Description
    System.String message

    The message.

    Returns
    Type Description
    RequestInfo

    A RequestInfo based on the message.

    Type Parameters
    Name Description
    TContract

    The service contract type.

    View Source

    SerializeReply(MethodInfo, Object)

    Serializes a reply message from method information and a return value.

    Declaration
    string SerializeReply(MethodInfo methodInfo, object result)
    Parameters
    Type Name Description
    System.Reflection.MethodInfo methodInfo

    The method information.

    System.Object result

    The return value.

    Returns
    Type Description
    System.String

    The serialized reply message.

    • View Source
    Back to top Generated by DocFX