public XmppRequestResult(XmppSession session, IQ iq, XmppHandlerResult errorResponse) : base(session) { Args.NotNull(iq, "iq"); this.iq = iq; this.errorResponse = errorResponse; }
public XmppErrorResult(XmppSession session, Exception error) : base(XmppSession.Empty) { Args.NotNull(error, "error"); var je = (error as JabberException) ?? new JabberStreamException(error); XmppHandlerResult send = new XmppSendResult(session, je.ToElement(), false); result = je.CloseStream ? new XmppComponentResult(send, new XmppCloseResult(session)) : send; }
public XmppComponentResult Add(XmppHandlerResult result) { results.Add(result); return(this); }