Beispiel #1
0
        private static void ParseProperties(JoinToken es, HttpContextBase hcb = null)
        {
            if (es == null)
            {
                return;
            }

            var ps = es.GetType().GetProperties();

            foreach (var p in ps)
            {
                if (hcb == null)
                {
                    var context = HttpContext.Current;
                    if (context == null)
                    {
                        return;
                    }
                    p.SetValue(es, context.Request[p.Name], null);
                }
                else
                {
                    p.SetValue(es, hcb.Request[p.Name], null);
                }
            }
        }
Beispiel #2
0
        private static void ParseProperties(JoinToken es)
        {
            if (es == null)
                return;

            var ps = es.GetType().GetProperties();
            foreach (var p in ps)
            {
                var context = HttpContext.Current;
                if (context == null)
                    return;
                p.SetValue(es, context.Request[p.Name], null);
            }
        }
Beispiel #3
0
        private static void ParseProperties(JoinToken es)
        {
            if (es == null)
            {
                return;
            }
            var ps = es.GetType().GetProperties();

            foreach (var p in ps)
            {
                var context = HttpContext.Current;
                if (context == null)
                {
                    return;
                }
                p.SetValue(es, context.Request[p.Name], null);
                LogHelper.Debug("ParseProperties)" + p.Name + ":" + context.Request[p.Name], "微信CallBack_");
            }
        }