logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface ISyncUseCase<TInput, TOutput>

    Interface representing a synchronous use case with input and output.

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

    The type of the input parameter.

    TOutput

    The type of the output result.

    Methods

    Execute(TInput)

    Executes the use case with the given input and returns the output.

    Declaration
    TOutput Execute(TInput input)
    Parameters
    Type Name Description
    TInput input

    The input parameter for the use case.

    Returns
    Type Description
    TOutput

    The output result of the use case.

    In this article
    © 2026 Serenity. All Rights Reserved