Register WCF in the database

I want to write each xml request message to my WCF service project in a database. Please suggest me the best and preferred approach.

1) Using the idispatchmessageinspector interface

http://msdn.microsoft.com/en-us/library/system.servicemodel.dispatcher.idispatchmessageinspector(v=VS.90).aspx

OR

2) write a custom SQL database trace listener?

+2
source share
3 answers

, , , , , WCF , .

SQL - SQL- ( SQL- SQL), WCF.

0

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

0
source

All Articles