示例#1
0
 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);
     }
 }
示例#2
0
 public void OnClose(Java.IO.IOException e)
 {
     // Update the file with the cloud server.  The client is done writing.
     Log.Info(TAG, "A file with id " + documentID + " has been closed! Time to update the server.");
 }
 public void OnIOException(Java.IO.IOException e, Object state)
 {
     Log.Error("Facebook", e.Message);
     e.PrintStackTrace();
 }