logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IAsyncUseCase<TInput>

    Interface representing an asynchronous use case with input and no output.

    Namespace: Serenity.Global.Application.Interfaces
    Assembly: Serenity.Global.Application.dll
    Syntax
    public interface IAsyncUseCase<in TInput> : IUseCase
    Type Parameters
    Name Description
    TInput

    The type of the input parameter.

    Methods

    ExecuteAsync(TInput, CancellationToken)

    Executes the use case with the given input.

    Declaration
    Task ExecuteAsync(TInput input, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    TInput input

    The input parameter for the use case.

    CancellationToken cancellationToken

    Optional cancellation token to cancel the operation.

    Returns
    Type Description
    Task
    In this article
    © 2026 Serenity. All Rights Reserved