コード例 #1
0
        public async Task HandleAsync(PublishConferenceCommand command)
        {
            var conference = await _conferenceRepository.GetConference(command.AggregateRootId);

            conference.PublishConference();
            await _publishDomainEvent.PublishEventAsync(conference);
        }
コード例 #2
0
 public async Task PublishConference(Guid conferenceId)
 {
     var publishConferenceCommand = new PublishConferenceCommand(conferenceId);
     await _commandService.SendCommandAsync(publishConferenceCommand);
 }