Table of Contents

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

Token TokenResponse
Error string
ErrorDescription string

Properties

Error

public string? Error { get; init; }

Property Value

string

ErrorDescription

public string? ErrorDescription { get; init; }

Property Value

string

IsOk

是否已交付。

public bool IsOk { get; }

Property Value

bool

Token

public TokenResponse? Token { get; init; }

Property Value

TokenResponse

Methods

Deconstruct(out TokenResponse?, out string?, out string?)

public void Deconstruct(out TokenResponse? Token, out string? Error, out string? ErrorDescription)

Parameters

Token TokenResponse
Error string
ErrorDescription string

Equals(DevicePollResult?)

public bool Equals(DevicePollResult? other)

Parameters

other DevicePollResult

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DevicePollResult?, DevicePollResult?)

public static bool operator ==(DevicePollResult? left, DevicePollResult? right)

Parameters

left DevicePollResult
right DevicePollResult

Returns

bool

operator !=(DevicePollResult?, DevicePollResult?)

public static bool operator !=(DevicePollResult? left, DevicePollResult? right)

Parameters

left DevicePollResult
right DevicePollResult

Returns

bool