Skip to content

IInboundTriggerStore

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The store for inbound trigger definitions.

public interface IInboundTriggerStore

DeleteAsync(string, string, CancellationToken)

Section titled “ DeleteAsync(string, string, CancellationToken)”

Deletes the trigger.

ValueTask<bool> DeleteAsync(string tenantId, string name, CancellationToken cancellationToken = default)

tenantId string

The tenant identifier.

name string

The trigger name.

cancellationToken CancellationToken

The cancellation token.

ValueTask<bool>

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)

tenantId string

The tenant identifier.

name string

The trigger name.

cancellationToken CancellationToken

The cancellation token.

ValueTask<InboundTrigger?>

The trigger; null if it does not exist.

Lists all of a tenant’s triggers, by name.

ValueTask<IReadOnlyList<InboundTrigger>> ListAsync(string tenantId, CancellationToken cancellationToken = default)

tenantId string

The tenant identifier.

cancellationToken CancellationToken

The cancellation token.

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)

trigger InboundTrigger

The trigger to save.

cancellationToken CancellationToken

The cancellation token.

ValueTask<InboundTrigger>

The saved trigger.