This commit is contained in:
Christian
2022-02-20 21:10:46 +01:00
committed by GitHub
parent 47e674e4d3
commit 2ce9b94ec9
608 changed files with 22364 additions and 19420 deletions
+7 -28
View File
@@ -1,15 +1,15 @@
using MQTTnet.Exceptions;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using MQTTnet.Exceptions;
using MQTTnet.Protocol;
using System;
using MQTTnet.Packets;
namespace MQTTnet
{
[Obsolete("Use MqttTopicFilterBuilder instead. It is just a renamed version to align with general namings in this lib.")]
public class TopicFilterBuilder : MqttTopicFilterBuilder
{
}
public class MqttTopicFilterBuilder
public sealed class MqttTopicFilterBuilder
{
/// <summary>
/// The quality of service level.
@@ -60,39 +60,18 @@ namespace MQTTnet
_qualityOfServiceLevel = MqttQualityOfServiceLevel.ExactlyOnce;
return this;
}
[Obsolete("Please use overload with _bool_ instead.")]
public MqttTopicFilterBuilder WithNoLocal(bool? value = true)
{
_noLocal = value == true;
return this;
}
public MqttTopicFilterBuilder WithNoLocal(bool value = true)
{
_noLocal = value;
return this;
}
[Obsolete("Please use overload with _bool_ instead.")]
public MqttTopicFilterBuilder WithRetainAsPublished(bool? value = true)
{
_retainAsPublished = value == true;
return this;
}
public MqttTopicFilterBuilder WithRetainAsPublished(bool value = true)
{
_retainAsPublished = value;
return this;
}
[Obsolete("Please use overload with _MqttRetainHandling_ instead.")]
public MqttTopicFilterBuilder WithRetainHandling(MqttRetainHandling? value)
{
_retainHandling = value ?? MqttRetainHandling.SendAtSubscribe;
return this;
}
public MqttTopicFilterBuilder WithRetainHandling(MqttRetainHandling value)
{