void IStanzaEventListener.StreamInit(ElementStream stream) { if (OnStreamInit != null) { // Race condition. Make sure not to make GUI calls in OnStreamInit /* if (InvokeRequired) CheckedInvoke(OnStreamInit, new object[] { this, stream }); else */ OnStreamInit(this, stream); } }
private void JabberClient_OnStreamInit(Object sender, ElementStream stream) { stream.AddFactory(new protocol.client.Factory()); stream.AddFactory(new protocol.iq.Factory()); stream.AddFactory(new protocol.x.Factory()); }
private void JabberService_OnStreamInit(Object sender, ElementStream stream) { stream.AddFactory(new jabber.protocol.accept.Factory()); }