MediatorApiController Class

Summary

Default controller that integrates with MediatR.IMediator
graph BT Type-->Base0["ControllerBase"] Type["MediatorApiController"] class Type type-node

Syntax

public abstract class MediatorApiController : ControllerBase

Attributes

Type Description
NullableContextAttribute
NullableAttribute
PublicAPIAttribute
ApiControllerAttribute
ApiConventionTypeAttribute

Constructors

Name Summary
MediatorApiController(IMediator) Default constructor

Methods

Name Value Summary
Send<TResponse>(IRequest<TResponse>, Func<ActionResult>) Task<ActionResult>
Send an request and allow for sync Microsoft.AspNetCore.Mvc.ActionResult
Send<TResponse>(IRequest<TResponse>, Func<Task<ActionResult>>) Task<ActionResult>
Send an request and allow for async Microsoft.AspNetCore.Mvc.ActionResult
Send<TResponse>(IRequest<TResponse>, Func<TResponse, ActionResult<TResponse>>) Task<ActionResult<TResponse>>
Send an request and allow for sync Microsoft.AspNetCore.Mvc.ActionResult`1
Send<TResponse>(IRequest<TResponse>, Func<TResponse, Task<ActionResult<TResponse>>>) Task<ActionResult<TResponse>>
Send an request and allow for async Microsoft.AspNetCore.Mvc.ActionResult`1

Extension Methods