Files
MQTTnet/Source/MQTTnet/Formatter/ReadFixedHeaderResult.cs
T
2022-02-20 21:10:46 +01:00

26 lines
772 B
C#

// 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.
namespace MQTTnet.Formatter
{
public struct ReadFixedHeaderResult
{
public static ReadFixedHeaderResult Cancelled { get; } = new ReadFixedHeaderResult
{
IsCancelled = true
};
public static ReadFixedHeaderResult ConnectionClosed { get; } = new ReadFixedHeaderResult
{
IsConnectionClosed = true
};
public bool IsCancelled { get; set; }
public bool IsConnectionClosed { get; set; }
public MqttFixedHeader FixedHeader { get; set; }
}
}