Created
December 17, 2015 21:48
-
-
Save AlonAm/bfcf9fb2d41643058cbb 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 IPreRequestHandler<in TRequest> | |
{ | |
void Handle(TRequest request); | |
} | |
public interface IAsyncPreRequestHandler<in TRequest> | |
{ | |
Task Handle(TRequest request); | |
} | |
public interface IPostRequestHandler<in TRequest, in TResponse> | |
{ | |
void Handle(TRequest request, TResponse response); | |
} | |
public interface IAsyncPostRequestHandler<in TRequest, in TResponse> | |
{ | |
Task Handle(TRequest reqeust, TResponse response); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment