예제 #1
0
        public HttpResponseMessage UpdateSettings(RedisCachingProviderSettings settings)
        {
            try
            {
                settings.SaveSettings();

                return(Request.CreateResponse(HttpStatusCode.OK));
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
            }
        }
예제 #2
0
 public HttpResponseMessage GetSettings()
 {
     try
     {
         var settings = new RedisCachingProviderSettings();
         settings.LoadSettings();
         return(Request.CreateResponse(HttpStatusCode.OK, settings));
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
     }
 }