/// <summary> /// Turns on/off the response volatility status. /// </summary> /// <param name="control">Control on/off</param> /// <returns>True if the request is successful, otherwise returns false.</returns> public async Task <bool> SetResponseVolatilityStatusAsync(ResponseVolatilityStatusEnum control) { _logger.Debug("WilmaService SetResponseVolatilityStatusAsync enter with value: " + control); var resp = await _httpClient.GetAsync(GetUrl(STATUS_SETRESPONSE_VOLATILITY_URL_POSTFIX_FORMAT, control.ToString().ToLower())); if (resp.IsSuccessStatusCode) { _logger.Debug("WilmaService SetResponseVolatilityStatusAsync success."); return(true); } _logger.Debug("WilmaService SetResponseVolatilityStatusAsync failed: {0}", resp.StatusCode); return(false); }
/// <summary> /// Turns on/off the response volatility status. /// </summary> /// <param name="control">Control on/off</param> /// <returns>True if the request is successful, otherwise returns false.</returns> public async Task<bool> SetResponseVolatilityStatusAsync(ResponseVolatilityStatusEnum control) { _logger.Debug("WilmaService SetResponseVolatilityStatusAsync enter with value: " + control); var resp = await _httpClient.GetAsync(GetUrl(STATUS_SETRESPONSE_VOLATILITY_URL_POSTFIX_FORMAT, control.ToString().ToLower())); if (resp.IsSuccessStatusCode) { _logger.Debug("WilmaService SetResponseVolatilityStatusAsync success."); return true; } _logger.Debug("WilmaService SetResponseVolatilityStatusAsync failed: {0}", resp.StatusCode); return false; }