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: PerActionFieldType.ClientCertificateorActionFieldType.TrustedCertificatefield 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.
Properties
Section titled “Properties”Certificates
Section titled “Certificates”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.
Logger
Section titled “Logger”ILogger Logger { get; init; }The server log.
RecipientId
Section titled “RecipientId”Guid? RecipientId { get; init; }The recipient; null for a recipient’s Test, which runs on the values of its form beside the open session.
Settings
Section titled “Settings”JsonElement Settings { get; init; }The recipient’s fields over their defaults, passwords decrypted. Stays inside the session.
Methods
Section titled “Methods”CertificatesOf
Section titled “CertificatesOf”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).
GetBool
Section titled “GetBool”bool GetBool(string key)A setting as on or off.
GetInt
Section titled “GetInt”int GetInt(string key, int fallback = 0)A setting as a number.