瀏覽代碼

Add overload for setting message payload.

release/3.x.x
Christian Kratky 5 年之前
父節點
當前提交
ffe9c57ae8
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      Source/MQTTnet/MqttApplicationMessageBuilder.cs

+ 6
- 0
Source/MQTTnet/MqttApplicationMessageBuilder.cs 查看文件

@@ -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)


Loading…
取消
儲存