C# Class NServiceBus.XmlMessageSerializer

Inheritance: IMessageSerializer
Show file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
Deserialize ( Stream stream, IList messageTypesToDeserialize = null ) : object[]

Deserializes from the given stream a set of messages.

InitType ( Type t ) : void

Scans the given type storing maps to fields and properties to save on reflection at runtime.

Initialize ( IEnumerable types ) : void

Initialized the serializer with the given message types.

Serialize ( object message, Stream stream ) : void

Serializes the given messages to the given stream.

XmlMessageSerializer ( IMessageMapper mapper, Conventions conventions ) : System

Initializes an instance of a XmlMessageSerializer.

Private Methods

Method Description
TrimPotentialTrailingForwardSlashes ( string value ) : string

Method Details

Deserialize() public method

Deserializes from the given stream a set of messages.
public Deserialize ( Stream stream, IList messageTypesToDeserialize = null ) : object[]
stream Stream Stream that contains messages.
messageTypesToDeserialize IList /// The list of message types to deserialize. If null the types must be inferred /// from the serialized data. ///
return object[]

InitType() public method

Scans the given type storing maps to fields and properties to save on reflection at runtime.
public InitType ( Type t ) : void
t System.Type
return void

Initialize() public method

Initialized the serializer with the given message types.
public Initialize ( IEnumerable types ) : void
types IEnumerable
return void

Serialize() public method

Serializes the given messages to the given stream.
public Serialize ( object message, Stream stream ) : void
message object
stream Stream
return void

XmlMessageSerializer() public method

Initializes an instance of a XmlMessageSerializer.
public XmlMessageSerializer ( IMessageMapper mapper, Conventions conventions ) : System
mapper IMessageMapper Message Mapper.
conventions Conventions The endpoint conventions.
return System