Beispiel #1
0
        private void XmppConnectionXmppStreamStart(object sender, XmppStreamStartEventArgs e)
        {
            var handler = XmppStreamStart;

            if (handler != null)
            {
                handler(this, e);
            }
        }
		private void XmppConnectionXmppStreamStart(object sender, XmppStreamStartEventArgs e)
		{
			var handler = XmppStreamStart;
			if (handler != null) handler(this, e);
		}
        private void XmppStreamStart(object sender, XmppStreamStartEventArgs e)
        {
            try
            {
                if (logMessages.IsDebugEnabled)
                {
                    logMessages.DebugFormat(RECIEVE_FORMAT, e.ConnectionId, e.Namespace, e.Node.ToString(Formatting.Indented));
                }

                var xmppStream = streamManager.GetOrCreateNewStream(e.ConnectionId);
                ProcessStreamStart(e.Node, e.Namespace, xmppStream);
            }
            catch (Exception ex)
            {
                log.ErrorFormat("Error process stream start: {0}", ex);
            }
        }