To call the WCF service, you need to know three things:
- Address - where to call - in your case
net.tcp://localhost:25488/MyDataAccessService/MyFirstBindingAddress - - ( :
netTcpBinding) - - (
public interface IMyDataAccessService)
, :
NetTcpBinding binding = new NetTcpBinding(NetTcpBinding.None);
EndpointAddress address = new EndpointAddress("net.tcp://localhost:25488/MyDataAccessService/MyFirstBindingAddress");
ChannelFactory<IMyDataAccessService> channelFactory = new ChannelFactory<IMyDataAccessService>(binding, address);
IMyDataAccessService _clientProxy = channelFactory.CreateChannel();
_clientProxy , ..
, ! . , (, , - ). netTcpBinding, , .NET .
class library, , .