Method ResolveAsync
ResolveAsync(string, SshConfigResolveOptions?, CancellationToken)
Resolves the effective settings for host, as Resolve(string, SshConfigResolveOptions?) does, awaiting
ExecMatcher and HostCanonicalizer (or the DNS lookups
of UseDnsCanonicalizer) when the config needs them (Match exec,
CanonicalizeHostname).
public Task<SshHostConfig> ResolveAsync(string host, SshConfigResolveOptions? options = null, CancellationToken cancellationToken = default)
Parameters
hoststringThe host name or alias, as the user typed it.
optionsSshConfigResolveOptionsExternal inputs (explicit user and port, home directory, ...); defaults are taken from the process.
cancellationTokenCancellationTokenCancels the callbacks.