AspireSftpExtensions
Class static net10.0
Provides extension methods for registering SFTP-related services in an
Hosting.IHostApplicationBuilder. namespace Microsoft.Extensions.Hosting;
public static class AspireSftpExtensions{ // ...}Methods2
Section titled MethodsAddKeyedSftpClient(IHostApplicationBuilder, string, Action<SftpSettings>)extension Registers
SshNet.SftpClient as a keyed singleton for the given name in the services provided by the builder. AddSftpClient(IHostApplicationBuilder, string, Action<SftpSettings>)extension Registers
SshNet.SftpClient as a singleton in the services provided by the builder.