Table of Contents

Method LoadAsync

Namespace
SshSharp.Config
Assembly
SshSharp.dll

LoadAsync(string, string?, CancellationToken)

Loads a config file asynchronously. A missing file gives an empty config.

public static Task<SshConfig> LoadAsync(string path, string? baseDirectory = null, CancellationToken cancellationToken = default)

Parameters

path string
baseDirectory string
cancellationToken CancellationToken

Returns

Task<SshConfig>