logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IAsyncQueryUseCase<TOutput>

    Interface representing an asynchronous query without input and with output.

    Namespace: Serenity.Global.Application.Interfaces
    Assembly: Serenity.Global.Application.dll
    Syntax
    public interface IAsyncQueryUseCase<TOutput> : IUseCase
    Type Parameters
    Name Description
    TOutput

    The type of the output result.

    Methods

    ExecuteAsync(CancellationToken)

    Executes the query and returns the output.

    Declaration
    Task<TOutput> ExecuteAsync(CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Optional cancellation token to cancel the operation.

    Returns
    Type Description
    Task<TOutput>

    The output result.

    In this article
    © 2026 Serenity. All Rights Reserved