DiscoverySenderHelper.GetKeyFromArgsAsync - метод
Loads key from given args.
Пространство имён: Tessa.Discovery.SendersСборка: Tessa (в Tessa.dll) Версия: 4.0.5
public static Task<DiscoveryKey> GetKeyFromArgsAsync(
IDiscoveryKeySerializer keySerializer,
IReadOnlyDictionary<string, string?> arguments,
string keyPathArgName = "k",
string keyPassArgName = "kp",
CancellationToken cancellationToken = default
)
Public Shared Function GetKeyFromArgsAsync (
keySerializer As IDiscoveryKeySerializer,
arguments As IReadOnlyDictionary(Of String, String),
Optional keyPathArgName As String = "k",
Optional keyPassArgName As String = "kp",
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of DiscoveryKey)
public:
static Task<DiscoveryKey^>^ GetKeyFromArgsAsync(
IDiscoveryKeySerializer^ keySerializer,
IReadOnlyDictionary<String^, String^>^ arguments,
String^ keyPathArgName = L"k",
String^ keyPassArgName = L"kp",
CancellationToken cancellationToken = CancellationToken()
)
static member GetKeyFromArgsAsync :
keySerializer : IDiscoveryKeySerializer *
arguments : IReadOnlyDictionary<string, string> *
?keyPathArgName : string *
?keyPassArgName : string *
?cancellationToken : CancellationToken
-> Task<DiscoveryKey>
- keySerializer IDiscoveryKeySerializer
- arguments IReadOnlyDictionary<String, String>
- Command arguments.
- keyPathArgName String (Optional)
- Key path argument name.
- keyPassArgName String (Optional)
- Key password argument name.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
Task<DiscoveryKey>