Skip to content

Instantly share code, notes, and snippets.

@AlonAm
Created December 17, 2015 21:48
Show Gist options
  • Save AlonAm/bfcf9fb2d41643058cbb to your computer and use it in GitHub Desktop.
Save AlonAm/bfcf9fb2d41643058cbb to your computer and use it in GitHub Desktop.
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