IActionResultTypeMapper Interface

Definition

Provides a mapping from the return value of an action to an IActionResult for request processing.

public interface class IActionResultTypeMapper
public interface IActionResultTypeMapper
type IActionResultTypeMapper = interface
Public Interface IActionResultTypeMapper

Remarks

The default implementation of this service handles the conversion of ActionResult<TValue> to an IActionResult during request processing as well as the mapping of ActionResult<TValue> to TValue during API Explorer processing.

Methods

Convert(Object, Type)

Converts the result of an action to an IActionResult for response processing. This method will be not be called when a method returns void or an IActionResult value.

GetResultDataType(Type)

Gets the result data type that corresponds to returnType. This method will not be called for actions that return void or an IActionResult type.

Applies to