C# 클래스 NServiceBus.XmlSerializationExtensions

Custom extensions for the XmlSerializer serializer.
파일 보기 프로젝트 열기: Particular/NServiceBus

공개 메소드들

메소드 설명
DontWrapRawXml ( this config ) : SerializationExtensions

Tells the serializer to not wrap properties which have either XDocument or XElement with a "PropertyName" element. By default the xml serializer serializes the following message.

Namespace ( this config, string namespaceToUse ) : SerializationExtensions

Configures the serializer to use a custom namespace. (http://tempuri.net) is the default.

If the provided namespace ends with trailing forward slashes, those will be removed on the fly.

SanitizeInput ( this config ) : SerializationExtensions

Tells the serializer to sanitize the input data from illegal characters.

메소드 상세

DontWrapRawXml() 공개 정적인 메소드

Tells the serializer to not wrap properties which have either XDocument or XElement with a "PropertyName" element. By default the xml serializer serializes the following message.
public static DontWrapRawXml ( this config ) : SerializationExtensions
config this
리턴 SerializationExtensions

Namespace() 공개 정적인 메소드

Configures the serializer to use a custom namespace. (http://tempuri.net) is the default.

If the provided namespace ends with trailing forward slashes, those will be removed on the fly.

public static Namespace ( this config, string namespaceToUse ) : SerializationExtensions
config this The to add a namespace to.
namespaceToUse string /// Namespace to use for interop scenarios. /// Note that this namespace is not validate or used for any logic inside NServiceBus. /// It is only for scenarios where a transport (or other infrastructure) requires message xml contents to have a specific /// namespace. ///
리턴 SerializationExtensions

SanitizeInput() 공개 정적인 메소드

Tells the serializer to sanitize the input data from illegal characters.
public static SanitizeInput ( this config ) : SerializationExtensions
config this
리턴 SerializationExtensions