Changed logout so it receives an string as result

This commit is contained in:
Adolfo Gómez 2012-07-23 14:54:49 +00:00
parent 4079169542
commit e5e734b4b8
3 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,7 @@ namespace UdsAdmin.xmlrpc
SimpleInfo[] GetAdminAuths(string locale); SimpleInfo[] GetAdminAuths(string locale);
[XmlRpcMethod("logout")] [XmlRpcMethod("logout")]
bool Logout(string credentials); string Logout(string credentials);
// Service provider related methods // Service provider related methods
[XmlRpcMethod("getServiceProvidersTypes")] [XmlRpcMethod("getServiceProvidersTypes")]

View File

@ -239,12 +239,13 @@ namespace UdsAdmin.xmlrpc
} }
public static void Logout() public static string Logout()
{ {
string ret = "";
if (s != null) if (s != null)
try try
{ {
s.Logout(credentials); ret = s.Logout(credentials);
credentials = ""; credentials = "";
s = null; s = null;
} }
@ -252,6 +253,7 @@ namespace UdsAdmin.xmlrpc
{ {
// If credentials are not valid, or we can't reach server, we are exiting so we don't care :-) // If credentials are not valid, or we can't reach server, we are exiting so we don't care :-)
} }
return ret;
} }
// Authenticators // Authenticators