When does CallContext LogicalSetData get cleared? Issues with WebApi global ExceptionHandler
- 阅读更多 关于 When does CallContext LogicalSetData get cleared? Issues with WebApi global ExceptionHandler
问题 We are implementing a global exception handler for our WebAPI (like in this link) http://www.asp.net/web-api/overview/web-api-routing-and-actions/web-api-global-error-handling We are also using log4net's LogicalThreadContext to pass around context information (like a call context id or a correlation id). For those of you not familiar, this uses CallContext.LogicalSetData and LogicalGetData. My problem is that I can't seem to access the data once I get into our custom ExceptionLogger and