I am testing on iPhone simulator and MD stops on the exception. My
test code is running on a non-gui thread like the following but that
still stops MD.
public static void Main(string[] args) {
new Thread(new ThreadStart(ApplicationDelegate.test)).Start();
UIApplication.Main(args, null, "ApplicationDelegate");
}
public static void test() {
ping(result => {ObjectDumper.Write(result);});
}
public void ping(Action<object> callback) {
try {
var request = new RestRequest(URL_PING, Method.POST);
client.ExecuteAsync(request, response => {
try {
if (response.ResponseStatus == ResponseStatus.Completed) {
var result = response.Content;
callback(result);
} else {
callback("Request failed " + response.ResponseStatus);
}
} catch (Exception e) {
callback(e);
}
});
} catch (Exception e) {
callback(e);
}
}