Advertisement
Guest User

Untitled

a guest
Jan 9th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. namespace Common
  2. {
  3.     /// <summary>
  4.     /// Marker interface for commands.
  5.     /// </summary>
  6.     public interface ICommand<in TRequest> where TRequest : IRequest
  7.     {
  8.         void Execute(TRequest request);
  9.     }
  10. }
  11.  
  12. namespace Common
  13. {
  14.     /// <summary>
  15.     /// Marker interface for requests.
  16.     /// </summary>
  17.     public interface IRequest
  18.     {
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement