易搜题 > 其他 > 其他综合 > 问题详情
问题详情

A Windows Communication Foundation (WCF) client and service share the following service contract interface: [ServiceContract] public interface IContosoService { [OperationContract] void SavePerson(Person person); } They also use the following binding: NetTcpBinding binding = new NetTcpBinding( ) { TransactionFlow = true }; The client calls the service with the following code: using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required)) { IContosoService client = factory.CreateChannel( ); client.SavePerson(person); Console.WriteLine(Transaction.Current.TransactionInformation.DistributedIdentifier); ts.Complete( ); } The service has the following implementation for SavePerson: public void IContosoService.SavePerson(Person person) { person.Save( ); Console.WriteLine(Transaction.Current.TransactionInformation.DistributedIdentifier); } The distributed identifiers do not match on the client and the server. You need to ensure that the client and server enlist in the same distributed transaction. What should you do?()

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • 根据我国建筑业企业资质许可的规定,民航、铁路方面的专业承包序列二级资质的许可,由企业工商注册所在地省、自治区、直辖市人民政府建设主管部门实施。

    A、对

    B、错

  • 下列哪项是正确的()

    A、身为保险营销员,要真心诚意将客户当作一生的朋友来看待。

    B、售后服务的中心原则就是把握一切机会与保户保持密切的联系。

    C、诚恳与周到的售后服务,对客户有好处,但对保险公司没有好处。

  • 简述信用风险的成因。

  • 名片的交换包括()。

    A、名片的递交

    B、名片的接收

    C、名片的索取

  • 大量流水生产方式可以看成是成批生产的一种正常情况。

    A、对

    B、错

联系客服 会员中心
TOP