C# Class NServiceBus.XmlDeserialization

Mostra file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
CacheDefaultNameSpaceMessageBaseTypesAndPrefixes ( XmlDocument doc ) : void
Deserialize ( Stream stream, IList messageTypesToDeserialize = null ) : object[]
ProcessChildNodes ( IList messageTypesToDeserialize, XmlDocument doc, ICollection result ) : void
ProcessRootTypes ( IEnumerable rootTypes, XmlDocument doc, ICollection result ) : void
XmlDeserialization ( IMessageMapper mapper, XmlSerializerCache cache, bool skipWrappingRawXml, bool sanitizeInput ) : System

Private Methods

Method Description
ContainsAnyMessageTypesToDeserialize ( IList messageTypesToDeserialize ) : bool
ContainsMultipleMessages ( XmlDocument doc ) : bool
ExtractNodeTypeAtPosition ( IList messageTypesToDeserialize, int position ) : Type
FindRootTypes ( IEnumerable messageTypesToDeserialize ) : IEnumerable
GetField ( Type t, string name ) : FieldInfo
GetNameAfterColon ( string name ) : string
GetObjectOfTypeFromNode ( Type t, XmlNode node ) : object
GetProperty ( Type t, string name ) : PropertyInfo
GetPropertyValue ( Type type, XmlNode n ) : object
InferNodeType ( XmlNode node, object parent ) : Type
NothingToBeProcessed ( XmlDocument doc ) : bool
Process ( XmlNode node, object parent, Type nodeType = null ) : object
ReadStreamIntoDocument ( Stream stream, bool sanitizeInput ) : XmlDocument

Method Details

CacheDefaultNameSpaceMessageBaseTypesAndPrefixes() public method

public CacheDefaultNameSpaceMessageBaseTypesAndPrefixes ( XmlDocument doc ) : void
doc System.Xml.XmlDocument
return void

Deserialize() public method

public Deserialize ( Stream stream, IList messageTypesToDeserialize = null ) : object[]
stream Stream
messageTypesToDeserialize IList
return object[]

ProcessChildNodes() public method

public ProcessChildNodes ( IList messageTypesToDeserialize, XmlDocument doc, ICollection result ) : void
messageTypesToDeserialize IList
doc System.Xml.XmlDocument
result ICollection
return void

ProcessRootTypes() public method

public ProcessRootTypes ( IEnumerable rootTypes, XmlDocument doc, ICollection result ) : void
rootTypes IEnumerable
doc System.Xml.XmlDocument
result ICollection
return void

XmlDeserialization() public method

public XmlDeserialization ( IMessageMapper mapper, XmlSerializerCache cache, bool skipWrappingRawXml, bool sanitizeInput ) : System
mapper IMessageMapper
cache XmlSerializerCache
skipWrappingRawXml bool
sanitizeInput bool
return System