public ActionHandler ( |
||
owner | ||
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;
}