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. |