Beispiel #1
0
 public NotifyAdapterServerClient(string strServerName)
 {
     _pipeName       = strServerName;
     _serviceUri     = new Uri("net.pipe://localhost/" + _pipeName + "/");
     _serviceAddress = new EndpointAddress(string.Format(CultureInfo.InvariantCulture, "{0}{1}", _serviceUri.OriginalString, _pipeName));
     _erviceProxy    = ChannelFactory <INotifyAdapterStatus> .CreateChannel(new NetNamedPipeBinding(), _serviceAddress);
 }