Subscribe() public method

public Subscribe ( string channel, XMPP>.Action callback ) : void
channel string
callback XMPP>.Action
return void
コード例 #1
0
        private void RunXMPP()
        {
            XMPP xmpp = new XMPP(Config.XMPP_JID, OAuthTicket.AccessToken, Config.XMPPResourceName, "X-OAUTH2", Config.XMPPUseProxy ? Config.WebProxyHost : null, Config.XMPPUseProxy ? Config.WebProxyPort : 0, Config.XMPPHost, Config.XMPPPort);

            xmpp.Start((ex, x) => XMPP_Ended(ex, x));
            xmpp.Subscribe("cloudprint.google.com", ProcessPush);
            XMPP = xmpp;
        }
コード例 #2
0
 private void RunXMPP()
 {
     XMPP xmpp = new XMPP(Config.XMPP_JID, OAuthTicket.AccessToken, Config.XMPPResourceName, "X-OAUTH2", Config.XMPPUseProxy ? Config.WebProxyHost : null, Config.XMPPUseProxy ? Config.WebProxyPort : 0, Config.XMPPHost, Config.XMPPPort);
     xmpp.Start((ex, x) => XMPP_Ended(ex, x));
     xmpp.Subscribe("cloudprint.google.com", ProcessPush);
     XMPP = xmpp;
 }