public MessageController(IGetCommand <GetMessageResponseDTO, GetMessageRequestDTO> getMessageCommand)
 {
     _getMessageCommand = getMessageCommand;
 }
Example #2
0
 public CommandMapper(IGetCommand get, IAddCommand add, IImportCommand import)
 {
     _get    = get;
     _add    = add;
     _import = import;
 }
Example #3
0
 public IEnumerable <T> Get <T, TId>(IGetCommand <T, TId> command)
 {
     return(Retry.Invoke(() => command.Execute(_connection, _transaction), _options));
 }
Example #4
0
 private static T ExecuteCommand <T>(IGetCommand <T> command)
 {
     command.Execute();
     return(command.Result);
 }