private async Task ShowServiceErrorAsync(AppServiceResponseStatus status)
{
string error = null;
switch (status)
{
case AppServiceResponseStatus.Success:
error = "Service did not return the expected result";
break;
case AppServiceResponseStatus.Failure:
error = "Service failed to answer";
break;
case AppServiceResponseStatus.ResourceLimitsExceeded:
error = "Service exceeded the resource limits and was terminated";
break;
case AppServiceResponseStatus.Unknown:
error = "Unknown error";
break;
default:
break;
}
await new MessageDialog(error).ShowAsync();
}