public async Task ListenForCustomerCreatedCommand(CreateCustomerCommand createCustomer) { var eventObj = createCustomer.ToCustomerCreatedEvent(); await _myEvent.ListenForCustomerCreatedEvent(eventObj); //throw new NotImplementedException(); }
public async Task ListenForCustomerCreatedCommand(CreateCustomerCommand cmd) { await _eventHandler.ListenForCustomerCreatedEvent(cmd.ToCustomerCreatedEvent()); }