public Task Setup(CardsSetup setup) { var cardsEvent = mapper.Map <SetupCardsEvent>(setup); this.publishingRouter.Publish(Queues.Cards, cardsEvent, null); return(Task.CompletedTask); }
public async Task Setup(CardsSetup setup) { var request = mapper.Map <SetupRequest>(setup); await cardsClient.SetupAsync(request); }