Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2 つの異なる WCF サービスを呼び出す Windows サービスがあります。両方のサービスが、同じトランザクションの下にある必要がある 2 つの異なる操作を実行します。つまり、両方が成功するか、両方が失敗する必要があります。
Windows サービスでトランザクションを開始し、意図的に 2 回目の WCF サービス呼び出しを失敗させましたが、驚いたことに操作がロールバックされませんでした。
私はここで何か悪いことをしていますか?
[TransactionFlow(TransactionFlowOption.Allowed)]
[OperationBehavior(TransactionScopeRequired=true)]