private async Task ShowConnectionErrorAsync(AppServiceConnectionStatus status)
{
string error = null;
switch (status)
{
case AppServiceConnectionStatus.AppNotInstalled:
error = "The Book Cache service is not installed.Deploy the BooksCacheProvider.";
break;
case AppServiceConnectionStatus.AppUnavailable:
error = "The Book Cache service is not available. Maybe an update is in progress, or the app location is not available";
break;
case AppServiceConnectionStatus.AppServiceUnavailable:
error = "The Book Cache service is not available";
break;
case AppServiceConnectionStatus.Unknown:
error = "Unknown error";
break;
default:
break;
}
await new MessageDialog(error).ShowAsync();
}
}