private Consumer <RegisterSeller> OnRegisterSeller(RegisterSeller message) { return(m => { var seller = _sellerRepository.Get(m.Name, key => new Seller(key)); }); }
private static void RegisterSellers(Actor auctioneer, int count) { for (int i = 0; i < count; i++) { string name = "Seller {0}".FormatWith(i); var message = new RegisterSeller { Name = name }; auctioneer.Send(message); } }
public async Task <IActionResult> Register([FromBody] RegisterSeller command) { await _mediator.Send(command); return(NoContent()); }