Class RemoteFileEndpointOptions

Assembly: redb.Route.GenericFile.dll

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

Object→EndpointOptions→GenericFileEndpointOptions→RemoteFileEndpointOptions

Derived

Inherited Members

EndpointOptions.BindableOptions(Type),EndpointOptions.BindFromUri(IReadOnlyDictionary<string, string>),EndpointOptions.IsLenient(Type),EndpointOptions.OptionValueHint(string),EndpointOptions.ResolveOption(string?, IExchange),EndpointOptions.RoleOf(PropertyInfo),EndpointOptions.UnknownParameterHint(string),EndpointOptions.UnmappedParameters,EndpointOptions.Validate(),EndpointOptions.WrittenBesideConnectionFactory(Type, EndpointUri),EndpointOptions.WrittenForOtherRole(Type, EndpointUri, EndpointRole),GenericFileEndpointOptions.AllowNullBody,GenericFileEndpointOptions.AntExclude,GenericFileEndpointOptions.AntFilterCaseSensitive,GenericFileEndpointOptions.AntInclude,GenericFileEndpointOptions.AppendChars,GenericFileEndpointOptions.AutoCreate,GenericFileEndpointOptions.BackoffErrorThreshold,GenericFileEndpointOptions.BackoffIdleThreshold,GenericFileEndpointOptions.BackoffMultiplier,GenericFileEndpointOptions.BackoffOnFailedExchanges,GenericFileEndpointOptions.Charset,GenericFileEndpointOptions.Delay,GenericFileEndpointOptions.Delete,GenericFileEndpointOptions.DoneFileName,GenericFileEndpointOptions.EagerDeleteTargetFile,GenericFileEndpointOptions.Exclude,GenericFileEndpointOptions.FileExist,GenericFileEndpointOptions.FileName,GenericFileEndpointOptions.Filter,GenericFileEndpointOptions.FilterDirectory,GenericFileEndpointOptions.FilterFile,GenericFileEndpointOptions.FilterInstance,GenericFileEndpointOptions.Idempotent,GenericFileEndpointOptions.IdempotentKey,GenericFileEndpointOptions.Include,GenericFileEndpointOptions.InitialDelay,GenericFileEndpointOptions.MaxDepth,GenericFileEndpointOptions.MaxMessagesPerPoll,GenericFileEndpointOptions.MinAge,GenericFileEndpointOptions.MinDepth,GenericFileEndpointOptions.MoveExisting,GenericFileEndpointOptions.MoveTo,GenericFileEndpointOptions.Noop,GenericFileEndpointOptions.PreMove,GenericFileEndpointOptions.Recursive,GenericFileEndpointOptions.SortBy,GenericFileEndpointOptions.StreamBody,GenericFileEndpointOptions.TempFileName,GenericFileEndpointOptions.TempPrefix,GenericFileEndpointOptions.ValidateCommon()

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; }

Host

Remote server hostname or IP address. (default: localhost)

public string Host { 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; }

Password

Password for authentication.

public string Password { 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; }

Username

Username for authentication.

public string Username { get; set; }

Methods

ValidateRemote()

Validates remote-specific options. Subclasses should call this from their Validate() method.

protected void ValidateRemote()