Show / Hide Table of Contents

    Interface ISequenceStore

    The temporary store for the sequences being consumed.

    Inherited Members
    IReadOnlyCollection<ISequence>.Count
    IEnumerable<ISequence>.GetEnumerator()
    IAsyncDisposable.DisposeAsync()
    IDisposable.Dispose()
    Namespace: Silverback.Messaging.Sequences
    Assembly: Silverback.Integration.dll
    Syntax
    public interface ISequenceStore : IReadOnlyCollection<ISequence>, IEnumerable<ISequence>, IEnumerable, IAsyncDisposable, IDisposable

    Methods

    | Improve this doc View source

    AddAsync<TSequence>(TSequence)

    Adds the specified sequence to the store.

    Declaration
    Task<TSequence> AddAsync<TSequence>(TSequence sequence) where TSequence : class, ISequence
    Parameters
    Type Name Description
    TSequence sequence

    The sequence to be added.

    Returns
    Type Description
    Task<TSequence>

    A Task<TResult> representing the asynchronous operation. The task result contains the ISequence instance.

    Type Parameters
    Name Description
    TSequence

    The type of the sequence to be added.

    | Improve this doc View source

    GetAsync<TSequence>(string, bool)

    Gets the sequence with the specified id.

    Declaration
    Task<TSequence?> GetAsync<TSequence>(string sequenceId, bool matchPrefix = false) where TSequence : class, ISequence
    Parameters
    Type Name Description
    string sequenceId

    The sequence identifier.

    bool matchPrefix

    Enables sequence id prefix matching (String.StartsWith).

    Returns
    Type Description
    Task<TSequence>

    A Task<TResult> representing the asynchronous operation. The task result contains the ISequence instance.

    Type Parameters
    Name Description
    TSequence

    The type of the sequence to be retrieved.

    | Improve this doc View source

    GetPendingSequences(bool)

    Returns the pending sequences currently in the store.

    Declaration
    IReadOnlyCollection<ISequence> GetPendingSequences(bool includeUnbounded = false)
    Parameters
    Type Name Description
    bool includeUnbounded

    A value indicating whether the Silverback.Messaging.Sequences.Unbounded.UnboundedSequence instances have to be returned as well.

    Returns
    Type Description
    IReadOnlyCollection<ISequence>

    The collection of sequences.

    | Improve this doc View source

    RemoveAsync(string)

    Removes the sequence with the specified id.

    Declaration
    Task RemoveAsync(string sequenceId)
    Parameters
    Type Name Description
    string sequenceId

    The sequence identifier.

    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini