NServiceBus.XmlSerialization.XmlSerialization C# (CSharp) Method

XmlSerialization() public method

public XmlSerialization ( Type messageType, Stream stream, object message, Conventions conventions, XmlSerializerCache cache, bool skipWrappingRawXml, string @namespace = DefaultNamespace ) : System
messageType System.Type
stream Stream
message object
conventions Conventions
cache XmlSerializerCache
skipWrappingRawXml bool
@namespace string
return System
        public XmlSerialization(Type messageType, Stream stream, object message, Conventions conventions, XmlSerializerCache cache, bool skipWrappingRawXml, string @namespace = DefaultNamespace)
        {
            this.messageType = messageType;
            this.message = message;
            this.conventions = conventions;
            this.cache = cache;
            this.skipWrappingRawXml = skipWrappingRawXml;
            this.@namespace = @namespace;
            writer = new RawXmlTextWriter(stream, new XmlWriterSettings
            {
                CloseOutput = false
            });
        }