コード例 #1
0
        protected override async ValueTask <SynchronizedParticipants> InternalFetchValue(string conferenceId)
        {
            var conference = await _mediator.Send(new FindConferenceByIdRequest(conferenceId));

            var participants = await _participantMetadataRepository.GetParticipantsOfConference(conferenceId);

            var participantsMap =
                participants.ToImmutableDictionary(x => x.Key, x => CreateParticipantData(x.Key, x.Value, conference));

            return(new SynchronizedParticipants(participantsMap));
        }