Pārlūkot izejas kodu

Add overload for setting message payload.

release/3.x.x
Christian Kratky pirms 5 gadiem
vecāks
revīzija
ffe9c57ae8
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. +6
    -0
      Source/MQTTnet/MqttApplicationMessageBuilder.cs

+ 6
- 0
Source/MQTTnet/MqttApplicationMessageBuilder.cs Parādīt failu

@@ -29,6 +29,12 @@ namespace MQTTnet
return this;
}

public MqttApplicationMessageBuilder WithPayload(byte[] payload)
{
_payload = payload;
return this;
}

public MqttApplicationMessageBuilder WithPayload(IEnumerable<byte> payload)
{
if (payload == null)


Notiek ielāde…
Atcelt
Saglabāt