public void InvokeMvcController(IManosContext ctx)
{
if (useThreadPool)
{
// Invoke the action on the thread pool
System.Threading.ThreadPool.QueueUserWorkItem(o=>InvokeControllerInternal((IManosContext)ctx), ctx);
}
else
{
// Invoke the controller on the event loop thread
InvokeControllerInternal(ctx);
}
}