Example #1
0
        private void XmppConnectionXmppStreamElement(object sender, XmppStreamEventArgs e)
        {
            var handler = XmppStreamElement;

            if (handler != null)
            {
                handler(this, e);
            }
        }
		private void XmppConnectionXmppStreamElement(object sender, XmppStreamEventArgs e)
		{
			var handler = XmppStreamElement;
			if (handler != null) handler(this, e);
		}
        private void XmppStreamElement(object sender, XmppStreamEventArgs e)
        {
            try
            {
                if (logMessages.IsDebugEnabled)
                {
                    logMessages.DebugFormat(RECIEVE_FORMAT, e.ConnectionId, string.Empty, e.Node.ToString(Formatting.Indented));
                }

                var stream = streamManager.GetStream(e.ConnectionId);
                if (stream == null) return;
                ProcessStreamElement(e.Node, stream);
            }
            catch (Exception ex)
            {
                log.ErrorFormat("Error process stream element: {0}", ex);
            }
        }