mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
26 lines
772 B
C#
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; }
|
|
}
|
|
}
|