Class DevicePollResult
- Namespace
- KernLab.Claim.Client
- Assembly
- KernLab.Claim.Client.dll
设备轮询单次结果(WP9——DeviceTokenAsync(string, string, string?, string, CancellationToken)):命中 = Token 非空; 未命中 = Error 为 authorization_pending / slow_down / expired_token / access_denied (RFC 8628 §3.5——调用方按语义续轮询/退避/终止)。
public sealed record DevicePollResult : IEquatable<DevicePollResult>
- Inheritance
-
DevicePollResult
- Implements
- Inherited Members
Constructors
DevicePollResult(TokenResponse?, string?, string?)
设备轮询单次结果(WP9——DeviceTokenAsync(string, string, string?, string, CancellationToken)):命中 = Token 非空; 未命中 = Error 为 authorization_pending / slow_down / expired_token / access_denied (RFC 8628 §3.5——调用方按语义续轮询/退避/终止)。
public DevicePollResult(TokenResponse? Token, string? Error, string? ErrorDescription)
Parameters
TokenTokenResponseErrorstringErrorDescriptionstring
Properties
Error
public string? Error { get; init; }
Property Value
ErrorDescription
public string? ErrorDescription { get; init; }
Property Value
IsOk
是否已交付。
public bool IsOk { get; }
Property Value
Token
public TokenResponse? Token { get; init; }
Property Value
Methods
Deconstruct(out TokenResponse?, out string?, out string?)
public void Deconstruct(out TokenResponse? Token, out string? Error, out string? ErrorDescription)
Parameters
TokenTokenResponseErrorstringErrorDescriptionstring
Equals(DevicePollResult?)
public bool Equals(DevicePollResult? other)
Parameters
otherDevicePollResult
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DevicePollResult?, DevicePollResult?)
public static bool operator ==(DevicePollResult? left, DevicePollResult? right)
Parameters
leftDevicePollResultrightDevicePollResult
Returns
operator !=(DevicePollResult?, DevicePollResult?)
public static bool operator !=(DevicePollResult? left, DevicePollResult? right)
Parameters
leftDevicePollResultrightDevicePollResult