InMemoryInboundTriggerStore
AgentPrism.Core.dllA store that keeps inbound trigger definitions in process memory (first class).
public sealed class InMemoryInboundTriggerStore : IInboundTriggerStoreInheritance
Section titled “Inheritance”object ← InMemoryInboundTriggerStore
Implements
Section titled “Implements”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”Limits: process lifetime and a single node. Use a SQL
provider in production. Its behavior contract matches
SqlInboundTriggerStore exactly and shared contract tests protect it.
Constructors
Section titled “Constructors”InMemoryInboundTriggerStore()
Section titled “ InMemoryInboundTriggerStore()”public InMemoryInboundTriggerStore()Methods
Section titled “Methods”DeleteAsync(string, string, CancellationToken)
Section titled “ DeleteAsync(string, string, CancellationToken)”Deletes the trigger.
public ValueTask<bool> DeleteAsync(string tenantId, string name, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
name string
The trigger name.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”true if the delete happened.
GetAsync(string, string, CancellationToken)
Section titled “ GetAsync(string, string, CancellationToken)”Fetches the trigger with the given name.
public ValueTask<InboundTrigger?> GetAsync(string tenantId, string name, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
name string
The trigger name.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”The trigger; null if it does not exist.
ListAsync(string, CancellationToken)
Section titled “ ListAsync(string, CancellationToken)”Lists all of a tenant’s triggers, by name.
public ValueTask<IReadOnlyList<InboundTrigger>> ListAsync(string tenantId, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<IReadOnlyList<InboundTrigger>>
The triggers.
UpsertAsync(InboundTrigger, CancellationToken)
Section titled “ UpsertAsync(InboundTrigger, CancellationToken)”Creates or updates the trigger (name + tenant is unique).
public ValueTask<InboundTrigger> UpsertAsync(InboundTrigger trigger, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”trigger InboundTrigger
The trigger to save.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”The saved trigger.