Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MqttConnectPayload"/> class.
 /// </summary>
 /// <param name="payloadStream">The payload stream.</param>
 /// <param name="willFlag">
 /// Set to true to indicate that the payload stream should be interrogated for the 
 /// Will Topic and Message</param>
 public MqttConnectPayload(MqttConnectVariableHeader variableHeader, Stream payloadStream)
 {
     this.variableHeader = variableHeader;
     ReadFrom(payloadStream);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MqttConnectPayload"/> class.
 /// </summary>
 public MqttConnectPayload(MqttConnectVariableHeader variableHeader)
 {
     this.variableHeader = variableHeader;
 }
Esempio n. 3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MqttConnectPayload" /> class.
 /// </summary>
 /// <param name="variableHeader">The variable header to use for the message.</param>
 /// <param name="payloadStream">The payload stream.</param>
 public MqttConnectPayload(MqttConnectVariableHeader variableHeader, Stream payloadStream)
 {
     this.variableHeader = variableHeader;
     ReadFrom(payloadStream);
 }
Esempio n. 4
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 MqttConnectVariableHeader(messageStream);
     this.Payload = new MqttConnectPayload(this.VariableHeader, messageStream);
 }
Esempio n. 5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MqttConnectPayload" /> class.
 /// </summary>
 public MqttConnectPayload(MqttConnectVariableHeader variableHeader)
 {
     this.variableHeader = variableHeader;
 }