MediatorApiController.

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

Summary

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

Syntax

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

Attributes

Type Description
AsyncStateMachineAttribute

Type Parameters

Name Description
TResponse

Parameters

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

Return Value

Type Description
Task<ActionResult>