public void OnFailure(Request p0, Java.IO.IOException p1)
 {
     // Kind of a hack, but the simplest way to find out that server cert. validation failed
     if (p1.Message == String.Format("Hostname '{0}' was not verified", p0.Url().Host)) {
         tcs.TrySetException(new WebException(p1.LocalizedMessage, WebExceptionStatus.TrustFailure));
     } else {
         tcs.TrySetException(p1);
     }
 }