Skip to content

RecipientSessionRequest

Record in Oadm.Sdk.Actions · Oadm.Sdk.dll

What a session is made from.

public sealed record RecipientSessionRequest(JsonElement Settings, IReadOnlyDictionary<string, IReadOnlyList<X509Certificate2>> Certificates, ILogger Logger)

Parameters

  • Settings: The recipient’s fields over their defaults, passwords decrypted. Stays inside the session.
  • Certificates: Per ActionFieldType.ClientCertificate or ActionFieldType.TrustedCertificate field that is visible and has a value: the chosen certificate first, then its issuers. A client certificate holds its private key.
  • Logger: The server log.
IReadOnlyDictionary<string, IReadOnlyList<X509Certificate2>> Certificates { get; init; }

Per ActionFieldType.ClientCertificate or ActionFieldType.TrustedCertificate field that is visible and has a value: the chosen certificate first, then its issuers. A client certificate holds its private key.

ILogger Logger { get; init; }

The server log.

Guid? RecipientId { get; init; }

The recipient; null for a recipient’s Test, which runs on the values of its form beside the open session.

JsonElement Settings { get; init; }

The recipient’s fields over their defaults, passwords decrypted. Stays inside the session.

IReadOnlyList<X509Certificate2> CertificatesOf(string key)

The certificates of a field; empty without one.

string? Get(string key)

A setting as text (null when missing or null).

bool GetBool(string key)

A setting as on or off.

int GetInt(string key, int fallback = 0)

A setting as a number.