コード例 #1
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;
 }
コード例 #2
0
 /// <summary>
 ///     Gets the net named pipe endpoint address.
 /// </summary>
 /// <param name="ip"> The ip. </param>
 /// <param name="serviceName"> Name of the service. </param>
 /// <returns> </returns>
 public static EndpointAddress GetNetNamedPipeEndpointAddress(
     string ip          = "localhost",
     string serviceName = DefaultWcfEndpoints.DefaultNamedPipeServiceName)
 {
     return(new EndpointAddress($"{DefaultWcfEndpoints.GetNetNamedPipeUri(ip)}/{serviceName}"));
 }