Class As2EndpointOptions
Strongly-typed options for an AS2 endpoint, bound from URI query parameters by
. Secrets are marked [Sensitive] so they are
redacted in logs. A partner profile (certificates, IDs, algorithms) usually comes from a named
in the registry via connectionFactory=name. The agreement has one
source: with a factory named, the inline agreement options below are refused on the URI; without one, they are the
whole agreement (no certificates, so only for an agreement that neither signs nor encrypts).
public sealed class As2EndpointOptions : EndpointOptions
Inheritance
Inherited Members
Properties
AllowLegacyAlgorithms
Permits the legacy algorithms sha-1 and 3des (see ).
public bool AllowLegacyAlgorithms { get; set; }
As2From
Our AS2 identifier (AS2-From on send, expected AS2-To on receive).
public string? As2From { get; set; }
As2To
Partner AS2 identifier (AS2-To on send, expected AS2-From on receive).
public string? As2To { get; set; }
AsyncMdnAllowedHosts
Receive side: comma-separated hosts an asynchronous MDN may be posted to (see
public string? AsyncMdnAllowedHosts { get; set; }
AsyncMdnAttempts
Receive side: how many times an asynchronous MDN is posted before the receiver gives up on it (1 = no retry).
public int AsyncMdnAttempts { get; set; }
AsyncMdnPoolSize
Receive side: how many asynchronous MDNs the receiver handles at once. A message that asks for one takes a slot
public int AsyncMdnPoolSize { get; set; }
AsyncMdnRetryDelay
Receive side: milliseconds before the first retry of an asynchronous MDN, doubled for each one after it.
public int AsyncMdnRetryDelay { get; set; }
AsyncMdnUrl
URL the partner posts asynchronous MDNs to (our receiver). Required for async MDN.
public string? AsyncMdnUrl { get; set; }
ConnectionFactory
Name of an registered in the route context.
[RegistryReference(typeof(As2ConnectionFactory))]
public string? ConnectionFactory { get; set; }
Encrypt
Encrypt outgoing / expect encrypted incoming (S/MIME). Default true.
public bool Encrypt { get; set; }
EncryptAlg
Encryption algorithm (aes-128-cbc, aes-256-cbc, ...). Default aes-128-cbc.
public string EncryptAlg { get; set; }
HeaderFilterStrategy
A registry reference (#name) to an that
[RegistryReference(typeof(IHeaderFilterStrategy))]
public string? HeaderFilterStrategy { get; set; }
Host
Bind address for the AS2 receive server (consumer). Default 0.0.0.0.
public string Host { get; set; }
IdempotentRepository
Receive side: name of an IIdempotentRepository registered with context.AddIdempotentRepository(name, repo)
[RegistryReference(typeof(IIdempotentRepository))]
public string? IdempotentRepository { get; set; }
InFlightClaimTimeout
Receive side, with : milliseconds after which a claim of a Message-ID that
public int InFlightClaimTimeout { get; set; }
MaxConcurrentRequests
Maximum concurrent executions of this receiver's pipeline. Default 32; 0 = unlimited.
public int MaxConcurrentRequests { get; set; }
MaxDecompressedSize
Receive side: the most bytes a compressed message (RFC 3274) may inflate to. A few kilobytes of compressed data
public long? MaxDecompressedSize { get; set; }
MaxRequestBodySize
Receive side (messages and MDNs): the largest request body accepted, in bytes; a larger one is answered 413
public long MaxRequestBodySize { get; set; }
MaxResponseBodySize
Send side: the largest response body read, in bytes (the synchronous MDN). A larger one (a proxy's error page,
public long MaxResponseBodySize { get; set; }
Mode
What a receive endpoint accepts: business messages (default) or async MDN receipts.
public As2ReceiveMode Mode { get; set; }
PartnerUrl
Partner endpoint URL the producer POSTs to. Reconstructed from the URI when absent.
public string? PartnerUrl { get; set; }
RejectStatusCode
Status code of a refused request: shed by the admission limit, or finding every asynchronous MDN slot taken
public int RejectStatusCode { get; set; }
RequestQueueLimit
Requests over the limit that WAIT for a permit (FIFO); 0 = reject immediately. When not set: 32 while
public int RequestQueueLimit { get; set; }
RequireValidMdn
Hard-fail a send on an unacceptable MDN (negative / MIC mismatch / missing required signature).
public bool RequireValidMdn { get; set; }
RetryAfterSeconds
Value of the Retry-After header on a refused request; 0 = do not send it. Default 30: an AS2 resend
public int RetryAfterSeconds { get; set; }
SignAlg
Signature digest algorithm (sha-256, sha-384, ...). Default sha-256.
public string SignAlg { get; set; }
SslCertPath
PFX certificate the receive server presents to the trading partner. This is the TLS server
public string? SslCertPath { get; set; }
StreamBody
Receive side: if true, the exchange body is a Stream (the spooled payload) instead of a byte array, as
public bool StreamBody { get; set; }
Timeout
Timeout in milliseconds of an outgoing POST: the message on a send, the asynchronous MDN on a receive.
public int Timeout { get; set; }
Methods
UnknownParameterHint(string)
A connector's own words for a parameter name it does not know — typically a name it used to
protected override string? UnknownParameterHint(string name)
Validate()
Validates required parameters and constraints. Called after BindFromUri.
public override void Validate()