Exemple #1
0
 public void RefreshAll(string scope, string app)
 {
     try
     {
         if (IsAsync())
         {
             string statusUrl = _adapterProvider.AsyncRefreshDictionary(scope, app);
             WebOperationContext.Current.OutgoingResponse.StatusCode          = HttpStatusCode.Accepted;
             WebOperationContext.Current.OutgoingResponse.Headers["location"] = statusUrl;
         }
         else
         {
             Response response = _adapterProvider.RefreshAll(scope, app);
             _adapterProvider.FormatOutgoingMessage <Response>(response, "xml", true);
         }
     }
     catch (Exception ex)
     {
         CustomErrorLog objCustomErrorLog = new CustomErrorLog();
         _CustomError = objCustomErrorLog.customErrorLogger(ErrorMessages.errRefreshAll, ex, _logger);
         objCustomErrorLog.throwJsonResponse(_CustomError);
     }
 }