.net - Is there an easier way to wrap every WCF method in a service with a 'using' block? -


I will take the TransactionScope as my example for now imagine that your WCF has a database activity of every method, and You want every call to be in the transaction. You can use one block in each of your ways, and it will work fine.

I am thinking that there is an easy way to do this in any service rather than the law level? For example / after the after-service system / or something in the Service Beavir.

Now I know specifically for TransactionScope that you can use the TransactionScopeRequired feature, but if it does not exist, what will you do?

There may be such a thing

An AOP The library is there.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -