If you create a proxy for the WCF service, the proxy server works efficiently with ClientBase
An example from my application:
public class DataClient : ClientBase<Classes.IDataService>, Classes.IDataService
{
public DataClient(string connectToHost)
: base(new NetTcpBinding(SecurityMode.Transport)
{
PortSharingEnabled = true,
Security = new NetTcpSecurity()
{
Transport = new TcpTransportSecurity()
{
ClientCredentialType = TcpClientCredentialType.Windows
}
}
},
new EndpointAddress(string.Format("net.tcp://{0}:5555/MyService",connectToHost)))
{ }
public Classes.Folder GetFolder(string entryID)
{
return Channel.GetFolder(entryID);
}
public Classes.IItem GetItem(string entryID)
{
return Channel.GetItem(entryID);
}
}
EDIT
At your request, I searched google a bit and found this :
Implements ICommunicationObject.Open ()
This led to this :
CommunicationException
The ICommunicationObject could not open and entered the Faulted state.
TimeoutException
- , ICommunicationObject Opened Faulted.
, , , , , " ".