当前位置:MCTS(70-513)题库

问题:

[单选]

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 .
C .
D .

Certkiller。COM已经在另一个城市的一个主要办公室和分支机构。你被分配到部署和实施一个只读域控制器(RODC)的分支机构。您可以部署RODC上运行Windows Server 2008。你应该怎么做,以确保在分支机构的用户可以登录到域使用RODC的呢() 使用RODC上的密码复制策略。 添加RODC的主要办公室。 部署和配置一个新的桥头服务器在分支机构。 部署和配置在主办公室的一个RODC上的密码复制策略。 选用功能价值法计算重置成本的依据是资产的生产能力与成本之间须存在()。 指数关系。 正向关系。 反向关系。 线形关系。 简述令牌环的原理。 根据《注册造价师工程管理办法》,取得造价工程师执业资格证书的人员,自资格证书签发之日起1年后申请初始注册的,应当提供()证明。 工程造价咨询业绩。 社会基本养老保险。 医疗保险。 继续教育合格。 为什么柴油机的压缩比通常比汽油机高?

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?()

参考答案:

  参考解析

本题暂无解析

在线 客服