Ejemplo n.º 1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="MqttPublishReleaseMessage" /> class.
        /// </summary>
        /// <remarks>
        ///     Only called via the MqttMessage.Create operation during processing of an Mqtt message stream.
        /// </remarks>
        public MqttPublishReleaseMessage() {
            this.Header = new MqttHeader() {
                MessageType = MqttMessageType.PublishRelease
            };

            this.VariableHeader = new MqttPublishReleaseVariableHeader() {
                ConnectFlags = new MqttConnectFlags()
            };
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="MqttPublishReleaseMessage" /> class.
        /// </summary>
        /// <remarks>
        ///     Only called via the MqttMessage.Create operation during processing of an Mqtt message stream.
        /// </remarks>
        public MqttPublishReleaseMessage()
        {
            this.Header = new MqttHeader()
            {
                MessageType = MqttMessageType.PublishRelease
            };

            this.VariableHeader = new MqttPublishReleaseVariableHeader()
            {
                ConnectFlags = new MqttConnectFlags()
            };
        }
Ejemplo n.º 3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MqttPublishReleaseMessage" /> class.
 /// </summary>
 /// <param name="header">The header to use for the message.</param>
 /// <param name="messageStream">The message stream positioned after the header.</param>
 internal MqttPublishReleaseMessage(MqttHeader header, Stream messageStream)
 {
     this.Header         = header;
     this.VariableHeader = new MqttPublishReleaseVariableHeader(messageStream);
 }
Ejemplo n.º 4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MqttPublishReleaseMessage" /> class.
 /// </summary>
 /// <param name="header">The header to use for the message.</param>
 /// <param name="messageStream">The message stream positioned after the header.</param>
 internal MqttPublishReleaseMessage(MqttHeader header, Stream messageStream) {
     this.Header = header;
     this.VariableHeader = new MqttPublishReleaseVariableHeader(messageStream);
 }