Example #1
0
 public IAsyncAction ServerConnectionErrorAsync()
 {
     return(Task.Run(async() =>
     {
         SignalingStatus.IsRegistered = false;
         await _foregroundChannel.OnSignaledRegistrationStatusUpdatedAsync();
     }).AsAsyncAction());
 }
Example #2
0
 public IAsyncAction OnRegistrationConfirmationAsync(RegisteredReply reply)
 {
     return(Task.Run(async() =>
     {
         await ClientConfirmationAsync(Confirmation.For(reply));
         SignalingStatus.IsRegistered = true;
         SignalingStatus.Avatar = reply.Avatar;
         await GetPeerListAsync(new Message());
         _foregroundChannel?.OnSignaledRegistrationStatusUpdatedAsync();
     }).AsAsyncAction());
 }