Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to set IActionResult in .NET Standard Library?

$
0
0

I am currently creating a .NET Standard 2.0 library to handle caching with a filter. In my IAsyncActionFilter, when the value is found in cache, I want to short-circuit the flow by setting context.Result, which is an IActionResult. But, I cannot find a nuget package which gives me access to something like Ok(testObject) or OkObjectResult to set the context.Result to.

How can I set the context.Result in a .NET Standard library?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>