HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method AddAsync

    AddAsync(T, CancellationToken)

    Adds a state under a new random ID and returns the ID, which the next step of a flow presents.

    Declaration
    public ValueTask<string> AddAsync(T state, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    T state

    The state.

    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    ValueTask<string>

    The ID: 256 random bits as 43 URL-safe characters (see ShortLivedId). It cannot be guessed, so it can serve as the secret that a client presents to continue the flow.

    © Singulink. All rights reserved.