logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IAsyncUseCase

    Interface representing an asynchronous use case without input or output.

    Namespace: Serenity.Global.Application.Interfaces
    Assembly: Serenity.Global.Application.dll
    Syntax
    public interface IAsyncUseCase : IUseCase

    Methods

    ExecuteAsync(CancellationToken)

    Executes the use case.

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

    Optional cancellation token to cancel the operation.

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