Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. namespace Cqrs.Commands.Abstract.CommandDispatchers
  2. {
  3. public interface ICommandDispatcher
  4. {
  5. /// <summary>
  6. /// Dispatch a command and its result will be ready later (just like jQuery Promise).
  7. /// </summary>
  8. /// <typeparam name="TR">the type of Command's result</typeparam>
  9. /// <param name="command">command</param>
  10. /// <returns>command's result so that caller can await for</returns>
  11. ICommandResult<TR> Dispatch<TR>(ICommand<TR> command);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement