Created
June 3, 2021 16:09
-
-
Save neuecc/5cba33e1fc0758f2255c12553e3b6c5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IRequestHandler<in TRequest, out TResponse> | |
{ | |
TResponse Invoke(TRequest request); | |
} | |
| |
public interface IAsyncRequestHandler<in TRequest, TResponse> | |
{ | |
ValueTask<TResponse> InvokeAsync(TRequest request, CancellationToken cancellationToken = default); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment