AssignEvents() public method

public AssignEvents ( jabber.client.JabberClient inConn ) : void
inConn jabber.client.JabberClient
return void
Example #1
0
        public void StartSellingItem()
        {
            var id = TestHelper.ToJId(
                string.Format(ItemIdAsLogin, this.ItemId)
                );

            this.Connection.User     = id.User;
            this.Connection.Server   = id.Server;
            this.Connection.Resource = id.Resource;
            this.Connection.Password = AuctionPassword;

            mQueue.AssignEvents(this.Connection);

            this.Connection.Connect();
            ConsoleAppHelper.WaitConnectingTo(this.Connection);
        }
        public ConsoleAuctionSniperDriver(string inHostName, string inId, string inPassword, string inAuctionItem, int inTimeout)
        {
            mQueue = new MessageQueue();

            mApp = new AuctionSniperConsole();
            mApp.BeginJoining += (conn) => {
                mQueue.AssignEvents(conn);
            };
            Assert.That(mApp.Status, Is.EqualTo(SniperStatus.Disconnected));

            this.JId = TestHelper.ToJId(inId);

            mApp.RunShell(
                inHostName,
                new AuctionCredencial {
                Id = this.JId, Password = inPassword
            },
                inAuctionItem
                );
        }
        public ConsoleAuctionSniperDriver(string inHostName, string inId, string inPassword, string inAuctionItem, int inTimeout)
        {
            mQueue = new MessageQueue();

            mApp = new AuctionSniperConsole();
            mApp.BeginJoining += (conn) => {
                mQueue.AssignEvents(conn);
            };
            Assert.That(mApp.Status, Is.EqualTo(SniperStatus.Disconnected));

            this.JId = TestHelper.ToJId(inId);

            mApp.RunShell(
                inHostName,
                new AuctionCredencial {Id = this.JId, Password = inPassword},
                inAuctionItem
            );
        }