BuildIt.Config.Core.Services.AppConfigurationService.HandleRetrievedAppConfigFailure C# (CSharp) Method

HandleRetrievedAppConfigFailure() private method

private HandleRetrievedAppConfigFailure ( AppConfigurationServerResponse appConfigurationServerResponse ) : Task
appConfigurationServerResponse BuildIt.Config.Core.Models.AppConfigurationServerResponse
return Task
        private async Task HandleRetrievedAppConfigFailure(AppConfigurationServerResponse appConfigurationServerResponse)
        {
#if DEBUG
            //Display all errors
            var responseErrors = appConfigurationServerResponse.AppConfigErors;
            foreach (var responseError in responseErrors)
            {
                await UserDialogService.AlertAsync($"Message: {responseError.Content}");
            }
#else
            //Display user-friendly alert
            var alertAsync = UserDialogService?.AlertAsync($"Something went wrong we couldn't retrieve your app configuration");
            if (alertAsync != null) await alertAsync;
#endif
        }