IInboundTriggerStore
AgentPrism.Abstractions.dllThe store for inbound trigger definitions.
public interface IInboundTriggerStoreMethods
Section titled “Methods”DeleteAsync(string, string, CancellationToken)
Section titled “ DeleteAsync(string, string, CancellationToken)”Deletes the trigger.
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.
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.
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).
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.