public static AddTradeRequestCommand Create(TradeEscrow escrow, TradeRequest request) { AddTradeRequestCommand command = new AddTradeRequestCommand(); command.escrow = escrow; command.request = request; return(command); }
public void AddTradeRequest(TradeRequest request) { ICommand command = AddTradeRequestCommand.Create(matchState.escrow, request); _commandFactory.Execute(command); }