public async ValueTask <IEnumerable <Participant> > GetParticipantsOfConference(string conferenceId)
        {
            var conferenceToParticipantsKey = DatabaseKeyBuilder.ForProperty(CONFERENCE_TO_PARTICIPANTS_KEY)
                                              .ForConference(conferenceId).ToString();

            return((await _database.HashGetAllAsync(conferenceToParticipantsKey)).Keys.Select(participantId =>
                                                                                              new Participant(conferenceId, participantId)));
        }
 private static string GetLockKey(Participant participant)
 {
     return(DatabaseKeyBuilder.ForProperty(LOCK_KEY).ForConference(participant.ConferenceId)
            .ForSecondary(participant.Id).ToString());
 }
 private static string GetKey(string conferenceId)
 {
     return(DatabaseKeyBuilder.ForProperty(PROPERTY_KEY).ForConference(conferenceId).ToString());
 }
Пример #4
0
 private static string GetRoomMappingKey(string conferenceId)
 {
     return(DatabaseKeyBuilder.ForProperty(ROOMMAPPING_PROPERTY_KEY).ForConference(conferenceId).ToString());
 }
Пример #5
0
 private static string GetTypingSetKey(string conferenceId, string channel)
 {
     return(DatabaseKeyBuilder.ForProperty(PROP_TYPING).ForConference(conferenceId).ForSecondary(channel)
            .ToString());
 }
Пример #6
0
 private static string GetChannelSetKey(string conferenceId)
 {
     return(DatabaseKeyBuilder.ForProperty(PROP_CHANNELS_KEY).ForConference(conferenceId).ToString());
 }
Пример #7
0
 private static string GetLockKey(string conferenceId, string roomId)
 {
     return(DatabaseKeyBuilder.ForProperty(LOCK_PROPERTY_KEY).ForConference(conferenceId).ForSecondary(roomId)
            .ToString());
 }
 private static string GetParticipantJoinLockKey(Participant participant)
 {
     return(DatabaseKeyBuilder.ForProperty(PARTICIPANT_LOCK).ForConference(participant.ConferenceId)
            .ForSecondary(participant.Id).ToString());
 }
 private static string GetConferenceToParticipantsKey(string conferenceId)
 {
     return(DatabaseKeyBuilder.ForProperty(CONFERENCE_TO_PARTICIPANTS_KEY).ForConference(conferenceId)
            .ToString());
 }
Пример #10
0
 private static string GetParticipantToConferenceKey(string participantId)
 {
     return(DatabaseKeyBuilder.ForProperty(PARTICIPANT_TO_CONFERENCE_KEY).ForSecondary(participantId).ToString());
 }
Пример #11
0
 private static string GetPollAnswersKey(string conferenceId, string pollId)
 {
     return(DatabaseKeyBuilder.ForProperty(POLLANSWERS_PROPERTY_KEY).ForConference(conferenceId)
            .ForSecondary(pollId).ToString());
 }
 private static string GetPermissionsKey(Participant participant)
 {
     return(DatabaseKeyBuilder.ForProperty(PROPERTY_KEY).ForConference(participant.ConferenceId)
            .ForSecondary(participant.Id).ToString());
 }
Пример #13
0
 private static string GetSpeakerKey(string conferenceId, string roomId)
 {
     return(DatabaseKeyBuilder.ForProperty(CURRENTSPEAKER_PROPERTY_KEY).ForConference(conferenceId)
            .ForSecondary(roomId).ToString());
 }