private bool SendOnlineContacts() { try { OnlineContacts onlineContacts = new OnlineContacts(); foreach (var item in _chatUsers) { onlineContacts.messageRecipients.Add(item.Value); } Clients.onGetOnlineContacts(onlineContacts); return(false); } catch (Exception ex) { throw new InvalidOperationException("Problem in getting contacts!"); } }
private bool SendOnlineContacts() { try { OnlineContacts onlineContacts = new OnlineContacts(); foreach (var item in _chatUsers) { onlineContacts.messageRecipients.Add(item.Value); } Clients.onGetOnlineContacts(onlineContacts); return false; } catch (Exception ex) { throw new InvalidOperationException("Problem in getting contacts!"); } }