Пример #1
0
        public static XmppConnection CreateXmppConnection(string xmppHostName)
        {
            foreach (XmppConnection xmppConnection in _xmppConnections)
            {
                if (xmppConnection.XmppHostName == xmppHostName)
                {
                    return(xmppConnection);
                }
            }

            var newConnection = new XmppConnection(xmppHostName);

            _xmppConnections.Add(newConnection);
            return(newConnection);
        }
Пример #2
0
 public ChatManager(XmppConnection xmppConnection)
 {
     Chats          = new List <Chat>();
     XmppConnection = xmppConnection;
 }