DRAG DROP
ContractExhibit:
<ServiceContract>
Public Interface IPassGuideService
<OperationContract>
Sub SaveEmployee(Byval employee As Employee)
End Interface
Binding exhibit:
Dim binding As NetTcpBinding = New NetTcpBinding With (TransactionFlow = True)
Client Call exhibit:
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required))
{
IPassGuideService client = factoryCreateChannel();
client SaveEmployee(employee);
Console.WriteLine(
Transaction.CurrentTransactiominformation
DistributedIdentifier);
tsComplete();
}
SaveEmployee Exhibit:
Public Sub SaveEmployee(ByVal employee As Employee)_
Implements IPassGuideService SaveEmployee
employee.Save()
ConsoleWriteLine(TransactionCurrentTransactionlnformation.
Distributedldentifier)
End Sub
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?
Explanation: