Class FtpConnectionFactory

Namespace: redb.Route.Ftp
Assembly: redb.Route.Ftp.dll

Named connection factory for FTP/FTPS. Register it in the route registry and reference it by
name from the endpoint URI (connectionFactory=my-ftp) so the server password never has
to appear in the URI, and therefore can never reach logs, telemetry, or the dashboard.

Example:
context.AddToRegistry("partner-ftp", new FtpConnectionFactory
{
Host = "ftp.partner.com", Port = 21, UseFtps = true,
Username = "svc-drop",
Password = Environment.GetEnvironmentVariable("FTP_PASSWORD")!
});

r.From("ftp://inbox?connectionFactory=partner-ftp") // no credentials in the route

public sealed class FtpConnectionFactory : RemoteFileConnectionFactory

Inheritance

Object→RemoteFileConnectionFactory→FtpConnectionFactory

Inherited Members

Properties

PassiveMode

Use passive mode (default true).

public bool PassiveMode { get; set; }

UseFtps

Use FTPS (TLS).

public bool UseFtps { get; set; }

ValidateCertificate

Validate the server TLS certificate (default true).

public bool ValidateCertificate { get; set; }