Class As4Builder
Fluent builder of AS4 endpoint URIs. Receive: as4:/path?host=..&port=.., the path kept intact.
Send: as4[s]://host[:port]/path, with HTTPS mapped onto the as4s scheme.
public sealed class As4Builder
Inheritance
Methods
Action(string)
Overrides the agreement's eb:Action (send only; the agreement must allow it).
public As4Builder Action(string valueOrExpression)
ClientCertificate(As4ClientCertificateMode, string?)
Ask partners for a TLS client certificate (receive only; needs ).
public As4Builder ClientCertificate(As4ClientCertificateMode mode, string? allowedThumbprints = null)
ConnectionFactory(string)
Registry name of the node (). Required.
public As4Builder ConnectionFactory(string name)
ConversationId(string)
eb:ConversationId of sent messages (send only).
public As4Builder ConversationId(string valueOrExpression)
IdempotentRepository(string)
Named IIdempotentRepository that remembers received message ids (receive only, required).
public As4Builder IdempotentRepository(string name)
InFlightClaimTimeout(int)
Receive endpoint: milliseconds after which an unconfirmed claim of a message id is taken over (default 600000); a
public As4Builder InFlightClaimTimeout(int milliseconds)
MaxConcurrentRequests(int, int)
Admission limit (receive only): at most max concurrent pipeline executions;
public As4Builder MaxConcurrentRequests(int max, int queue = 0)
MaxEnvelopeCharacters(long)
Upper bound on the SOAP envelope in characters (receive only); payloads are not counted.
public As4Builder MaxEnvelopeCharacters(long characters)
MaxRequestBodySize(long)
Upper bound on a request body in bytes (receive only).
public As4Builder MaxRequestBodySize(long bytes)
Partner(string)
Registry name of the partner to send to (send only); may be an expression such as ${header.partner}.
public As4Builder Partner(string nameOrExpression)
PayloadList()
Always hand the payloads to the route as a list of As4Payload, with Content-IDs and part properties (receive only).
public As4Builder PayloadList()
RefToMessageId(string)
eb:RefToMessageId — the reply of a Two-Way / Push-and-Push exchange (send only).
public As4Builder RefToMessageId(string valueOrExpression)
RejectStatusCode(int)
Status code of a request shed by the admission limit (receive only). Default 503: an AS4 sender retries on it.
public As4Builder RejectStatusCode(int statusCode)
RetryAfterSeconds(int)
Retry-After of a shed request in seconds; 0 = not sent (receive only).
public As4Builder RetryAfterSeconds(int seconds)
Service(string)
Overrides the agreement's eb:Service (send only; the agreement must allow it).
public As4Builder Service(string valueOrExpression)
StreamBody()
Hand a single payload to the route as a Stream instead of byte[] (receive only).
public As4Builder StreamBody()
Timeout(int)
Milliseconds to wait for the partner's response carrying the receipt (send only).
public As4Builder Timeout(int milliseconds)
Tls(string?, string?)
Serve the receive endpoint over TLS (receive only). Omit the certificate to take it from the node's
public As4Builder Tls(string? certPath = null, string? certPassword = null)