Skip to content

Commit

Permalink
Add will message expiry interval to builder (#1804)
Browse files Browse the repository at this point in the history
This was missing from builder but not regular options.
  • Loading branch information
simonthum authored Aug 13, 2023
1 parent 9295626 commit 1018986
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/MQTTnet/Client/Options/MqttClientOptionsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,12 @@ public MqttClientOptionsBuilder WithWillRetain(bool willRetain = true)
return this;
}

public MqttClientOptionsBuilder WithWillMessageExpiryInterval(uint willMessageExpiryInterval)
{
_options.WillMessageExpiryInterval = willMessageExpiryInterval;
return this;
}

public MqttClientOptionsBuilder WithWillTopic(string willTopic)
{
_options.WillTopic = willTopic;
Expand Down

0 comments on commit 1018986

Please sign in to comment.