Esempio n. 1
0
            void IAuction.Disconnect()
            {
                this.NotToBeGCD.Close();
                ConsoleAppHelper.WaitDisconnectingTo(this.NotToBeGCD.Connection);

                mListener.AuctionDisconnected();
            }
Esempio n. 2
0
        private void JoinAuction(JabberClient inConnection, string inItemId)
        {
            mAuction = new XMPPAuction(
                new Chat(this.ToJid(inItemId, inConnection), inConnection), new SniperStateDisplayer()
                );

            if (this.BeginJoining != null)
            {
                this.BeginJoining(inConnection);
            }

            inConnection.Connect();
            ConsoleAppHelper.WaitConnectingTo(inConnection);

            mAuction.Join();
        }