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);
        }
Esempio n. 2
0
 public ChatManager(XmppConnection xmppConnection)
 {
     Chats          = new List <Chat>();
     XmppConnection = xmppConnection;
 }