I have a simple part of a code:
try
{
this.client.ExecuteAsync<Answer>(request, response =>
{
if (response.ResponseStatus == ResponseStatus.Completed)
callback(response.Data);
...
});
}
catch (WebException ex) {...}
and it throws NullReferenceException in the if line, because the response is null. What can I do to get a message about server down?