BooksCacheClient.ViewModels.BooksViewModel.ShowServiceErrorAsync C# (CSharp) 메소드

ShowServiceErrorAsync() 개인적인 메소드

private ShowServiceErrorAsync ( AppServiceResponseStatus status ) : System.Threading.Tasks.Task
status AppServiceResponseStatus
리턴 System.Threading.Tasks.Task
        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();
        }