Example #1
0
 /// <summary>
 ///     Reads a message from the supplied stream.
 /// </summary>
 /// <param name="messageStream">The message stream.</param>
 public override void ReadFrom(Stream messageStream)
 {
     this.VariableHeader = new MqttUnsubscribeVariableHeader(messageStream);
     this.Payload        = new MqttUnsubscribePayload(Header, VariableHeader, messageStream);
 }
Example #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MqttUnsubscribeMessage" /> class.
 /// </summary>
 /// <remarks>
 ///     Only called via the MqttMessage.Create operation during processing of an Mqtt message stream.
 /// </remarks>
 public MqttUnsubscribeMessage()
 {
     this.Header         = new MqttHeader().AsType(MqttMessageType.Unsubscribe);
     this.VariableHeader = new MqttUnsubscribeVariableHeader();
     this.Payload        = new MqttUnsubscribePayload();
 }