Open AKlaus opened 2 years ago
Starting from C#7, asynchronous methods may return ValueTask<TResult> in addition to Task<Result> (see the difference between the two).
ValueTask<TResult>
Task<Result>
Hence, IDomainResults static extensions need to support not only Task<IDomainResult> returned type but also ValueTask<IDomainResult>.
IDomainResults
Task<IDomainResult>
ValueTask<IDomainResult>
At this stage, it seems that support for ValueTask<IActionResult>is not required as it hasn't been widely adopted (is it even supported by Kestrel?)
ValueTask<IActionResult>
Starting from C#7, asynchronous methods may return
ValueTask<TResult>
in addition toTask<Result>
(see the difference between the two).Hence,
IDomainResults
static extensions need to support not onlyTask<IDomainResult>
returned type but alsoValueTask<IDomainResult>
.At this stage, it seems that support for
ValueTask<IActionResult>
is not required as it hasn't been widely adopted (is it even supported by Kestrel?)