Exemplo n.º 1
0
 /// <summary>Called by the underlying XmppStream during the OnStreamInit event.</summary>
 public static void HandleStreamInit(object sender, ElementStream stream)
 {
   stream.AddFactory(new XmppTAFactory());
 }
Exemplo n.º 2
0
 private void JabberService_OnStreamInit(Object sender, ElementStream stream)
 {
     stream.AddFactory(new jabber.protocol.accept.Factory());
 }
Exemplo n.º 3
0
        void OnStreamInit(object sender, ElementStream stream)
        {
            Trace.Call(sender, stream);

            stream.AddType("own-message", "http://www.facebook.com/xmpp/messages", typeof(OwnMessageQuery));
        }
Exemplo n.º 4
0
        private void JabberClient_OnStreamInit(Object sender, ElementStream stream)
        {
            stream.AddFactory(new jabber.protocol.client.Factory());
            stream.AddFactory(new jabber.protocol.iq.Factory());
            stream.AddFactory(new jabber.protocol.x.Factory());

        }
Exemplo n.º 5
0
 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);
     }
 }
Exemplo n.º 6
0
 private void jabber_OnStreamInit(object o, ElementStream elementStream)
 {
     //this.Logger.Info("jabber_OnStreamInit");
     var client = (JabberClient)o;
     _discoManager.Stream = client;
 }