You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TranslateResultToHttpResultFilter must implement the IEndpointFilter interface.
The detail to take into consideration is that IEndpointFilter is only available as of ASP.NET Core 7.0. This means that the custom filter should be compiled for specific frameworks such as .NET 7, 8 or higher.
The filter only converts the Result object to an implementation of Microsoft.AspNetCore.Http.IResult.
Example
TranslateResultToHttpResultFilter
must implement the IEndpointFilter interface.The detail to take into consideration is that IEndpointFilter is only available as of ASP.NET Core 7.0. This means that the custom filter should be compiled for specific frameworks such as .NET 7, 8 or higher.
As the SimpleResults.AspNetCore project has multiple target frameworks, the preprocessor symbols could be used as
NET7_0_OR_GREATER
. See https://learn.microsoft.com/en-us/dotnet/core/tutorials/libraries#preprocessor-symbolsThe text was updated successfully, but these errors were encountered: