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); } }
public void GetVersion(string format) { format = MapContentType(null, null, format); VersionInfo version = _adapterProvider.GetVersion(); _adapterProvider.FormatOutgoingMessage <VersionInfo>(version, format, true); }