I think using the interface idispatchmessageinspectorand using ThreadPool.QueueUserWorkItem()to read the query and enter the database in the event AfterReceiveRequestwill be better compared to using tracing. I believe that tracing may have some overhead because it is intended for some diagonal purposes and does not want to include tracing in prod forever.
Are there any problems with using idispatchmessageinspectorand ThreadPool.QueueUserWorkItem()for registering the request message in the database?
Thank!
Bala
source
share