/// <summary> /// Connecting to the gamenoise Site /// </summary> /// <returns>Information about the user</returns> public void Connect() { //Connecting to gamenoise.de with password ... no more needed //NetworkCredential networkCredential = new NetworkCredential("*****", "******"); try { _iss = XmlRpcProxyGen.Create<IServiceSystem>(); //_iss.Credentials = networkCredential; _connection = _iss.Connect(); _sessionID = _connection.sessid; _connected = true; OnConnected(); } catch(Exception ex) { Logout(); throw ex; } }
public void Logout() { try { _iss.Logout(_sessionID); } catch(Exception ex) { Console.WriteLine(ex.Message); } _sessionID = _connection.sessid; _connection = null; _connected = false; _loggedIn = false; }