Beispiel #1
0
        public static void SaveServiceRequestParam(AddinMethodInvocation invocation)
        {
            var    requestParams = RequestParams();
            string className     = invocation.Target.ToString();
            string method        = invocation.Method.Name;

            AddinConfigureEntityKey entityKey = new AddinConfigureEntityKey(className, method, EnumInterceptorType.None);

            foreach (string param in requestParams)
            {
                //key
                string key = entityKey.GetKey() + "_" + param;
                ServiceUIParamBizModel model = new ServiceUIParamBizModel {
                    ClassName = className, MethodName = method, ParamName = param, ParamValue = requestParams[param]
                };
                AddinCache.AddUIParam(key, model);
            }
        }
Beispiel #2
0
 public static bool AddUIParam(string key, ServiceUIParamBizModel model)
 {
     _uiParamCache.AddOrUpdate(key, model, (k, m) => { return(model); });
     return(true);
 }