MediatorApiController.

Send<TResponse>(IRequest<TResponse>, Func<ActionResult>) Method

Summary

Send an request and allow for sync Microsoft.AspNetCore.Mvc.ActionResult

Syntax

protected Task<ActionResult> Send<TResponse>(IRequest<TResponse> request, Func<ActionResult> success)

Attributes

Type Description
AsyncStateMachineAttribute

Type Parameters

Name Description
TResponse

Parameters

Name Type Description
request IRequest<TResponse> The request model
success Func<ActionResult> The method to call when the request succeeds

Return Value

Type Description
Task<ActionResult>