示例#1
0
 /// <summary>
 /// Creates a communication channel using ServerIpAddress and ServerPort.
 ///
 /// </summary>
 ///
 /// <returns>
 /// Ready communication channel to communicate
 /// </returns>
 protected override ICommunicationChannel CreateCommunicationChannel()
 {
     return((ICommunicationChannel) new TcpCommunicationChannel(TcpHelper.ConnectToServer((EndPoint) new IPEndPoint(IPAddress.Parse(this._serverEndPoint.IpAddress), this._serverEndPoint.TcpPort), this.ConnectTimeout)));
 }