Пример #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}"));
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WcfLoggerConfigView" /> class.
 /// </summary>
 public WcfLoggerConfigView()
 {
     this.Binding          = "namedpipe";
     this.LogFileDirectory = "Logs";
     this.LogFilePrefix    = "Live Viewer Log - ";
     this.ServiceName      = DefaultWcfEndpoints.DefaultNamedPipeServiceName;
     this.Uri = DefaultWcfEndpoints.GetNetNamedPipeUri().AbsolutePath;
 }
Пример #3
0
 /// <summary>
 ///     Gets the MSMQ endpoint address.
 /// </summary>
 /// <param name="ip"> The ip. </param>
 /// <param name="serviceName"> Name of the service. </param>
 /// <returns> </returns>
 public static EndpointAddress GetMsmqEndpointAddress(
     string ip          = "localhost",
     string serviceName = DefaultWcfEndpoints.DefaultMsmqServiceName)
 {
     return(new EndpointAddress($"{DefaultWcfEndpoints.GetMsmqUri(ip)}/{serviceName}"));
 }