/// <summary> /// 备份并清除网关的参数 /// </summary> private List <GatewayParameter> BackupAndClearGatewayParameter() { List <GatewayParameter> gatewayParameterData = new List <GatewayParameter>(GatewayParameterData); GatewayParameterData.Clear(); return(gatewayParameterData); }
/// <summary> /// 还原网关的参数 /// </summary> /// <param name="gatewayParameterData">网关的数据的集合</param> private void RestoreGatewayParameter(List <GatewayParameter> gatewayParameterData) { GatewayParameterData.Clear(); foreach (GatewayParameter item in gatewayParameterData) { SetGatewayParameterValue(item.Name, item.Value, item.RequestMethod); } }
/// <summary> /// 清除网关的数据 /// </summary> private void ClearGatewayParameterData() { GatewayParameterData.Clear(); }