Пример #1
0
 /// <summary>
 ///     Gets the net TCP endpoint address.
 /// </summary>
 /// <param name="ip"> The ip. </param>
 /// <param name="port"> The port. </param>
 /// <param name="serviceName"> Name of the service. </param>
 /// <returns> </returns>
 public static EndpointAddress GetNetTcpEndpointAddress(
     string ip          = "localhost",
     int port           = 8186,
     string serviceName = DefaultWcfEndpoints.DefaultTcpServiceName)
 {
     return(new EndpointAddress($"{DefaultWcfEndpoints.GetNetTcpUri(ip, port)}/{serviceName}"));
 }