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