C# Class NServiceBus.XmlMessageSerializer

Inheritance: IMessageSerializer
Afficher le fichier Open project: Particular/NServiceBus Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
TrimPotentialTrailingForwardSlashes ( string value ) : string

Method Details

Deserialize() public méthode

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. ///
Résultat object[]

InitType() public méthode

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

Initialize() public méthode

Initialized the serializer with the given message types.
public Initialize ( IEnumerable types ) : void
types IEnumerable
Résultat void

Serialize() public méthode

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

XmlMessageSerializer() public méthode

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