mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-28 01:02:37 +08:00
v4.0.0 (#1357)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user