예제 #1
0
 public ActionHandler(object controller, System.Reflection.MethodInfo method)
 {
     Parameters     = new List <ParameterBinder>();
     mMethod        = method;
     mMethodHandler = new MethodHandler(mMethod);
     Controller     = controller;
     LoadParameter();
     Filters = new List <FilterAttribute>();
 }
예제 #2
0
 public ActionHandler(object controller, System.Reflection.MethodInfo method)
 {
     Remark         = "";
     Parameters     = new List <ParameterBinder>();
     mMethod        = method;
     mMethodHandler = new MethodHandler(mMethod);
     Controller     = controller;
     LoadParameter();
     Filters        = new List <FilterAttribute>();
     Method         = "GET";
     SingleInstance = true;
     ControllerType = Controller.GetType();
 }
예제 #3
0
        public ActionHandler(object controller, System.Reflection.MethodInfo method)
        {
            ID             = System.Threading.Interlocked.Increment(ref mIdSeed);
            Remark         = "";
            Parameters     = new List <ParameterBinder>();
            mMethod        = method;
            mMethodHandler = new MethodHandler(mMethod);
            Controller     = controller;
            LoadParameter();
            Filters        = new List <FilterAttribute>();
            Method         = "GET";
            SingleInstance = true;
            ControllerType = Controller.GetType();
            NoConvert      = false;
            var aname = controller.GetType().Assembly.GetName();

            this.AssmblyName = aname.Name;
            this.Version     = aname.Version.ToString();
        }