Esempio n. 1
0
 public async Task RemoveInteractiveUser(InteractiveParticipantModel interactiveUser)
 {
     await this.semaphore.WaitAndRelease(() =>
     {
         if (this.users.ContainsKey(interactiveUser.userID))
         {
             UserViewModel user = this.users[interactiveUser.userID];
             user.RemoveInteractiveDetails(interactiveUser);
         }
         return(Task.FromResult(0));
     });
 }
Esempio n. 2
0
 public async Task RemoveInteractiveUser(InteractiveParticipantModel interactiveUser)
 {
     await this.LockWrapper(() =>
     {
         if (this.users.ContainsKey(interactiveUser.userID))
         {
             UserViewModel user = this.users[interactiveUser.userID];
             user.RemoveInteractiveDetails();
         }
         return(Task.FromResult(0));
     });
 }