コード例 #1
0
 public void StartSellingItem()
 {
     _connection.Connect();
     _connection.Login(string.Format(ITEM_ID_AS_LOGIN, _itemId), AUCTION_PASSWORD, AUCTION_RESOURCE);
     //_connection.ChatManager.ChatCreated += new EventHandler(FakeAuctionServer_ChatCreated);
     _connection.ChatManager.ChatCreated += ChatManager_ChatCreated;
 }
コード例 #2
0
        private static XMPPConnection ConnectTo(String hostname, String username, String password)
        {
            XMPPConnection connection = XMPPConnection.CreateXMPPConnection(hostname);

            connection.Connect();
            connection.Login(username, password, AUCTION_RESOURCE);

            return(connection);
        }