How can this be remedied?

DRAG DROP
ContractExhibit:
Interface
[ServiceContract]
public interface IPassGuideService
{
[OperationContract]
void SaveEmployee(Employee person);
}
Binding exhibit:
NetTcpBinding binding new NetTcpBinding { TransactionFlow = true };
Client Call exhibit:
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required))
{ IPassGuideService client = factoryCreateChannel();

client SaveEmployee(employee);
ConsoleWriteLine(
TransactionCurrentTransactionlnformation.
DistributedIdentifier);
tsComplete();
}
SaveEmployee Exhibit:
public void IPassGuideService SaveEmployee(Employee employee)
{ employee.Save();
ConsoleWriteLine(TransactionCurrentTransactionlnformation.
Distributedidentifier);
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
The service and the client has the service contract displayed in the contract exhibit.
The binding of the service and the client is displayed in the binding exhibit.
The client call exhibit displays how the client calls PassGuideService.
The implementation of the PassGuideService SaveEmployee method is displayed in the
SaveEmployee Exhibit.
However, there is a problem. There is distributed identifier mismatch between the client and
PassGuideService.
How can this be remedied?

DRAG DROP
ContractExhibit:
Interface
[ServiceContract]
public interface IPassGuideService
{
[OperationContract]
void SaveEmployee(Employee person);
}
Binding exhibit:
NetTcpBinding binding new NetTcpBinding { TransactionFlow = true };
Client Call exhibit:
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required))
{ IPassGuideService client = factoryCreateChannel();

client SaveEmployee(employee);
ConsoleWriteLine(
TransactionCurrentTransactionlnformation.
DistributedIdentifier);
tsComplete();
}
SaveEmployee Exhibit:
public void IPassGuideService SaveEmployee(Employee employee)
{ employee.Save();
ConsoleWriteLine(TransactionCurrentTransactionlnformation.
Distributedidentifier);
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
The service and the client has the service contract displayed in the contract exhibit.
The binding of the service and the client is displayed in the binding exhibit.
The client call exhibit displays how the client calls PassGuideService.
The implementation of the PassGuideService SaveEmployee method is displayed in the
SaveEmployee Exhibit.
However, there is a problem. There is distributed identifier mismatch between the client and
PassGuideService.
How can this be remedied?

Answer:

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *