Interface IActionResultConverter
- Namespace
- System.Web.Http.Controllers
- Assembly
- System.Web.Http.dll
A contract for a conversion routine that can take the result of an action returned from <see cref="M:System.Web.Http.Controllers.HttpActionDescriptor.ExecuteAsync(System.Web.Http.Controllers.HttpControllerContext,System.Collections.Generic.IDictionary{System.String,System.Object})" /> and convert it to an instance of HttpResponseMessage.
public interface IActionResultConverter
Methods
Convert(HttpControllerContext, object)
Converts the specified IActionResultConverter object to another object.
HttpResponseMessage Convert(HttpControllerContext controllerContext, object actionResult)
Parameters
controllerContext
HttpControllerContextThe controller context.
actionResult
objectThe action result.
Returns
- HttpResponseMessage
The converted object.