摘要: WCF(Windows Communication Foundation) - 事务(Transaction):
对契约方法使用TransactionFlowAttribute声明(设置TransactionFlowOption参数),以指定服务操作的事务流策略
对服务方法是用OperationBehaviorAttribute声明(设置TransactionScopeRequired参数),以指定方法是否在事务范围(TransactionScope)内执行
配置host和client的binding节点的transactionFlow属性,以指定绑定是否支持流事务
阅读全文