/// <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() }; }
/// <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); }