AuctionSniper.Test.MessageQueue.AssignEvents C# (CSharp) Method

AssignEvents() public method

public AssignEvents ( jabber.client.JabberClient inConn ) : void
inConn jabber.client.JabberClient
return void
        public void AssignEvents(JabberClient inConn)
        {
            inConn.OnMessage += (s, msg) => {
                lock (mLock) {
                    mMessages.Enqueue(msg);

                    Monitor.PulseAll(mLock);
                }
            };
        }

Usage Example

Beispiel #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);
        }
All Usage Examples Of AuctionSniper.Test.MessageQueue::AssignEvents