Class AsyncConvertEmptyActionResultFilter
- Namespace
- JsonApiDotNetCore.Middleware
- Assembly
- JsonApiDotNetCore.dll
Converts action result without parameters into action result with null parameter.
return NotFound() -> return NotFound(null)
public sealed class AsyncConvertEmptyActionResultFilter : IAsyncConvertEmptyActionResultFilter, IAsyncAlwaysRunResultFilter, IAsyncResultFilter, IFilterMetadata
- Inheritance
-
AsyncConvertEmptyActionResultFilter
- Implements
- Inherited Members
Methods
OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)
Called asynchronously before the action result.
public Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next)
Parameters
context
ResultExecutingContextnext
ResultExecutionDelegateThe ResultExecutionDelegate. Invoked to execute the next result filter or the result itself.