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 SourceDeserializeRequest(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. |
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. |
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. |