Skip to content

AgentPrismApprovalOptions

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Options for asynchronous approvals.

public sealed class AgentPrismApprovalOptions

objectAgentPrismApprovalOptions

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Reads values from the AgentPrism:Approvals configuration section. See AgentPrismServiceCollectionExtensions.AddAgentPrism.

public AgentPrismApprovalOptions()

The configuration section name.

public const string SectionName = "AgentPrism:Approvals"

string

A pending approval request has ApprovalStatus.Expired status after this duration.

public TimeSpan DefaultExpiration { get; set; }

TimeSpan

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.

Gets or sets a value that enables the background scan that closes expired requests.

public bool ExpirationEnabled { get; set; }

bool

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.

The maximum number of requests to close in one scan.

public int MaxPerScan { get; set; }

int

The delay between expiration scans.

public TimeSpan ScanInterval { get; set; }

TimeSpan