AgentPrismApprovalOptions
AgentPrism.Core.dllOptions for asynchronous approvals.
public sealed class AgentPrismApprovalOptionsInheritance
Section titled “Inheritance”object ← AgentPrismApprovalOptions
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Reads values from the AgentPrism:Approvals configuration section. See
AgentPrismServiceCollectionExtensions.AddAgentPrism.
Constructors
Section titled “Constructors”AgentPrismApprovalOptions()
Section titled “ AgentPrismApprovalOptions()”public AgentPrismApprovalOptions()Fields
Section titled “Fields”SectionName
Section titled “ SectionName”The configuration section name.
public const string SectionName = "AgentPrism:Approvals"Field Value
Section titled “Field Value”Properties
Section titled “Properties”DefaultExpiration
Section titled “ DefaultExpiration”A pending approval request has ApprovalStatus.Expired status after this duration.
public TimeSpan DefaultExpiration { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The default is 24 hours. An approval often needs a person, and a short limit, such as one hour, is not enough for an overnight shift.
ExpirationEnabled
Section titled “ ExpirationEnabled”Gets or sets a value that enables the background scan that closes expired requests.
public bool ExpirationEnabled { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The default is true. Unlike RunReconciliationOptions,
this is a security requirement, not a maintenance convenience. An approval
request that waits forever is a leak. See IPendingApprovalStore.ExpireAsync.
MaxPerScan
Section titled “ MaxPerScan”The maximum number of requests to close in one scan.
public int MaxPerScan { get; set; }Property Value
Section titled “Property Value”ScanInterval
Section titled “ ScanInterval”The delay between expiration scans.
public TimeSpan ScanInterval { get; set; }