C# 클래스 NServiceBus.XmlMessageSerializer

상속: IMessageSerializer
파일 보기 프로젝트 열기: Particular/NServiceBus 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
TrimPotentialTrailingForwardSlashes ( string value ) : string

메소드 상세

Deserialize() 공개 메소드

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. ///
리턴 object[]

InitType() 공개 메소드

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

Initialize() 공개 메소드

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

Serialize() 공개 메소드

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

XmlMessageSerializer() 공개 메소드

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