Class As4EndpointOptions

Namespace: redb.Route.As4
Assembly: redb.Route.As4.dll

Options of an AS4 endpoint, bound from URI query parameters. Only what may differ per endpoint or per
message lives here; the agreement (identities, certificates, algorithms) is the named
and its objects — there is no inline
alternative, so one partner has one source of truth.

checks what the URI alone decides. Everything that depends on the factory is
checked when the consumer or producer starts: the registry may be filled after the routes are defined.

public sealed class As4EndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→As4EndpointOptions

Inherited Members

Properties

Action

Overrides the agreement's eb:Action; allowed only when the agreement permits it.

[EndpointRole(EndpointRole.Producer)]
public DynamicValue<string>? Action { get; set; }

AddressQuery

Query of the partner's address, without the ?: Domibus serves its domains as

[EndpointRole(EndpointRole.Producer)]
public string? AddressQuery { get; set; }

AllowedClientThumbprints

Thumbprints (comma-separated) an accepted client certificate must match; null: any valid one.

[EndpointRole(EndpointRole.Consumer)]
public string? AllowedClientThumbprints { get; set; }

ClientCertificateMode

Whether the receive server asks partners for a TLS client certificate.

[EndpointRole(EndpointRole.Consumer)]
public As4ClientCertificateMode ClientCertificateMode { get; set; }

ConnectionFactory

Registry name of the (our node). Required.

[RegistryReference(typeof(As4ConnectionFactory))]
public string? ConnectionFactory { get; set; }

ConversationId

eb:ConversationId. Default: a new id per message, or the redbAs4.conversationId header.

[EndpointRole(EndpointRole.Producer)]
public DynamicValue<string>? ConversationId { get; set; }

Host

Bind address of the receive server. Default 0.0.0.0.

[EndpointRole(EndpointRole.Consumer)]
public string Host { get; set; }

IdempotentRepository

Name of an IIdempotentRepository registered with context.AddIdempotentRepository(name, repo) —

[EndpointRole(EndpointRole.Consumer)]
[RegistryReference(typeof(IIdempotentRepository))]
public string? IdempotentRepository { get; set; }

InFlightClaimTimeout

Receive side: milliseconds after which a claim of a message id that was never confirmed is taken to be left by a

[EndpointRole(EndpointRole.Consumer)]
public int InFlightClaimTimeout { get; set; }

MaxConcurrentRequests

Maximum concurrent executions of this receiver's pipeline; 0 (default) = unlimited.

[EndpointRole(EndpointRole.Consumer)]
public int MaxConcurrentRequests { get; set; }

MaxEnvelopeCharacters

Upper bound on the SOAP envelope in characters. Applies to the envelope only — payloads travel as

public long MaxEnvelopeCharacters { get; set; }

MaxRequestBodySize

Upper bound on a request body in bytes. Default .

[EndpointRole(EndpointRole.Consumer)]
public long MaxRequestBodySize { get; set; }

MaxResponseBodySize

Upper bound in bytes on the partner's HTTP response to a send (producer), the counterpart of

[EndpointRole(EndpointRole.Producer)]
public long MaxResponseBodySize { get; set; }

Partner

of the partner to send to (producer). May be an expression, e.g.

[EndpointRole(EndpointRole.Producer)]
public DynamicValue<string>? Partner { get; set; }

PayloadList

If true, the consumer always sets the exchange body to the list of , in the order of

[EndpointRole(EndpointRole.Consumer)]
public bool PayloadList { get; set; }

Port

Listen port of the receive server. Default .

[EndpointRole(EndpointRole.Consumer)]
public int Port { get; set; }

RefToMessageId

eb:RefToMessageId — set on the reply of a Two-Way / Push-and-Push exchange. Default: the

[EndpointRole(EndpointRole.Producer)]
public DynamicValue<string>? RefToMessageId { get; set; }

RejectStatusCode

Status code of a shed request. Default 503: an AS4 sender retries on it.

[EndpointRole(EndpointRole.Consumer)]
public int RejectStatusCode { get; set; }

RequestQueueLimit

Requests over the limit that wait for a permit (FIFO); 0 (default) = reject at once.

[EndpointRole(EndpointRole.Consumer)]
public int RequestQueueLimit { get; set; }

RetryAfterSeconds

Retry-After of a shed request in seconds; 0 = not sent. Default 1.

[EndpointRole(EndpointRole.Consumer)]
public int RetryAfterSeconds { get; set; }

Service

Overrides the agreement's eb:Service; allowed only when the agreement permits it.

[EndpointRole(EndpointRole.Producer)]
public DynamicValue<string>? Service { get; set; }

SslCertPassword

Password for .

[EndpointRole(EndpointRole.Consumer)]
public string? SslCertPassword { get; set; }

SslCertPath

PFX the receive server presents over TLS; else the factory's. A TLS receiver with neither refuses to start.

[EndpointRole(EndpointRole.Consumer)]
public string? SslCertPath { get; set; }

StreamBody

If true, the consumer sets the exchange body of a single-payload message to a Stream instead of a byte

[EndpointRole(EndpointRole.Consumer)]
public bool StreamBody { get; set; }

Timeout

Milliseconds to wait for the partner's HTTP response carrying the receipt. Default 60000.

[EndpointRole(EndpointRole.Producer)]
public int Timeout { get; set; }

Transacted

Defer the send to the enclosing .Transacted() block. eDelivery requires a synchronous receipt,

[EndpointRole(EndpointRole.Producer)]
public bool? Transacted { get; set; }

UseTls

Serve over HTTPS. Set by the as4s scheme.

public bool UseTls { get; set; }

Methods

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()