asp.net mvc 4, thread changed by model binding?
问题 I am using a custom ModelBinder in an MVC 4 application, but it is invoked on a different thread than the request event handlers in global.asax, and this makes setting up a performance profiling context in a ThreadLocal fail. The threadId is in brackets at the start of each line, and you can see that the thread changes when the model binding is invoked, and that is the thread in which the controller action (Index) is executed. [33] | ERROR | MyApp.MvcApplication | Application_BeginRequest [33