public async Task HandleAsync(PublishConferenceCommand command) { var conference = await _conferenceRepository.GetConference(command.AggregateRootId); conference.PublishConference(); await _publishDomainEvent.PublishEventAsync(conference); }
public async Task PublishConference(Guid conferenceId) { var publishConferenceCommand = new PublishConferenceCommand(conferenceId); await _commandService.SendCommandAsync(publishConferenceCommand); }