Class RemoteFileEndpointOptions
Base endpoint options for remote file-based transports (SFTP, FTP).
Extends with connection parameters,
reconnection logic, and remote-specific consumer features.
public abstract class RemoteFileEndpointOptions : GenericFileEndpointOptions
Inheritance
Derived
Inherited Members
Properties
ConnectionFactory
Named from the route registry. Lets server
[RegistryReference(typeof(RemoteFileConnectionFactory))]
public string? ConnectionFactory { get; set; }
ConnectionTimeout
TCP connection timeout in milliseconds. (default: 30000 = 30 s)
public int ConnectionTimeout { get; set; }
Disconnect
If true, disconnect after each poll cycle (consumer) or each upload (producer).
public bool Disconnect { get; set; }
MaxAge
Maximum file age in milliseconds. Files older than this are skipped. 0 = no limit. (default: 0)
public long MaxAge { get; set; }
MaximumReconnectAttempts
Maximum number of automatic reconnect attempts after a disconnect. (default: 3)
public int MaximumReconnectAttempts { get; set; }
MoveFailed
Directory to move files to on processing failure. Empty = leave in place.
public string MoveFailed { get; set; }
OperationTimeout
Operation timeout in milliseconds (read/write/list). (default: 60000 = 60 s)
public int OperationTimeout { get; set; }
Port
Remote server port. Subclass should set the protocol-specific default.
public virtual int Port { get; set; }
ReconnectDelay
Delay in milliseconds between reconnect attempts. (default: 1000)
public int ReconnectDelay { get; set; }
SendEmptyMessageWhenIdle
If true, the consumer creates an empty exchange when a poll returns no files.
public bool SendEmptyMessageWhenIdle { get; set; }
StartingDirectoryMustExist
If true, the starting (base) directory must exist on the remote server.
public bool StartingDirectoryMustExist { get; set; }
Methods
ValidateRemote()
Validates remote-specific options. Subclasses should call this from their Validate() method.
protected void ValidateRemote()