public bool IsAuthenticated()
{
RestSharp.IRestRequest isAuthenticated = new RestSharp.RestRequest(clientConfig.IsAuthenticatedAddress);
CleanRequest(ref isAuthenticated);
RestSharp.IRestResponse response = client.Execute(isAuthenticated);
if (response.StatusCode != HttpStatusCode.OK)
{
ThrowExceptionIfNecessary(response, "IsAuthenticated");
}
return response.StatusCode == HttpStatusCode.OK;
}