jabber.connection.PubSubNode.AutomatedSubscribe C# (CSharp) 메소드

AutomatedSubscribe() 공개 메소드

Creates the node then subscribes. If the creation succeeded, or if the node already exists, retrieve the items for the node. This is the typical starting point. Please make sure to register callbacks before calling this function.
public AutomatedSubscribe ( ) : void
리턴 void
        public void AutomatedSubscribe()
        {
            lock (this)
            {
                if ((this[Op.SUBSCRIBE] == STATE.Start) || (this[Op.SUBSCRIBE] == STATE.Error))
                    this[Op.SUBSCRIBE] = STATE.Pending;
                if ((this[Op.ITEMS] == STATE.Start) || (this[Op.ITEMS] == STATE.Error))
                    this[Op.ITEMS] = STATE.Pending;
            }
            Create();
        }