Manos.Mvc.ActionHandler.ActionHandler C# (CSharp) Method

ActionHandler() public method

public ActionHandler ( ControllerFactory owner, MethodInfo methodInfo ) : System
owner ControllerFactory
methodInfo System.Reflection.MethodInfo
return System
        public ActionHandler(ControllerFactory owner, MethodInfo methodInfo)
        {
            this.owner = owner;
            this.methodInfo = methodInfo;
            this.actionDelegate = ActionDelegateFactory.Create(methodInfo);
            this.useThreadPool = true;

            var utp = (UseThreadPoolAttribute)methodInfo.GetCustomAttributes(typeof(UseThreadPoolAttribute), false).FirstOrDefault();
            if (utp != null)
                this.useThreadPool = utp.UseThreadPool;
            else
                this.useThreadPool = owner.UseThreadPool;
        }