我有如下代码:
using (TransactionScope scope = TransactionScopeFactory.CreateTransactionScope())
{
*// some methodes calls for which scope is needed*
...
...
*//than WCF method code for which I don't want transaction to be involved, but if it throws an exception I don't wish scope to be completed*
WcfServiceInstance.SomeMethod();
scope.Complete();
}
我的问题是,我可以在 Transaction 范围内调用 WCF 服务方法而没有任何问题吗?(我不知道服务方法是如何实现的)另外,我想确保在wcf服务方法调用中不会涉及Transaction。