DiscoveryKeyStrategyTryGetKeyAsync - метод
Возвращает ключ discovery по его идентификатору.
Пространство имён: Tessa.DiscoveryСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public ValueTask<DiscoveryPublishedKey> TryGetKeyAsync(
byte[] keyID,
CancellationToken cancellationToken = default
)
Public Function TryGetKeyAsync (
keyID As Byte(),
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of DiscoveryPublishedKey)
public:
virtual ValueTask<DiscoveryPublishedKey^> TryGetKeyAsync(
array<unsigned char>^ keyID,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract TryGetKeyAsync :
keyID : byte[] *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<DiscoveryPublishedKey>
override TryGetKeyAsync :
keyID : byte[] *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<DiscoveryPublishedKey>
- keyID Byte
- Идентификатор ключа discovery.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
ValueTaskDiscoveryPublishedKeyКлюч discovery или
null, если ключ не найден.
IDiscoveryKeyStrategyTryGetKeyAsync(Byte, CancellationToken)