Summary
Send an request and allow for sync
Microsoft.AspNetCore.Mvc.ActionResult
- Assembly
- Rocket
.Surgery .AspNetCore .FluentValidation .MediatR .dll - Namespace
- Rocket
.Surgery .AspNetCore .FluentValidation .MediatR - Containing Type
- Mediator
Api Controller
Syntax
protected Task<ActionResult> Send<TResponse>(IRequest<TResponse> request, Func<ActionResult> success)
Attributes
Type | Description |
---|---|
Async |
Type Parameters
Name | Description |
---|---|
TResponse |
Parameters
Name | Type | Description |
---|---|---|
request | IRequest |
The request model |
success | Func |
The method to call when the request succeeds |
Return Value
Type | Description |
---|---|
Task |