private static ParticipantData CreateParticipantData(string participantId, ParticipantMetadata metadata,
                                                             Conference conference)
        {
            var isModerator = conference.Configuration.Moderators.Contains(participantId);

            return(new ParticipantData(metadata.DisplayName, isModerator));
        }
Example #2
0
 public async ValueTask AddParticipant(Participant participant, ParticipantMetadata data)
 {
     var key = GetKey(participant.ConferenceId);
     await _database.HashSetAsync(key, participant.Id, data);
 }