示例#1
0
 public WcfNetPipeHost(object singletonInstance, Type contractType, string pipeName) :
     base(singletonInstance, contractType, null, null)
 {
     Binding    = WcfServiceHelper.CreateNamedPipesBinding();
     ServiceUrl = WcfServiceHelper.GetNamedPipeServiceUrl(pipeName);
 }
示例#2
0
 public WcfNetPipeHost(Type serviceType, Type contractType, string pipeName) :
     base(serviceType, contractType, null, null)
 {
     Binding    = WcfServiceHelper.CreateNamedPipesBinding();
     ServiceUrl = WcfServiceHelper.GetNamedPipeServiceUrl(pipeName);
 }
示例#3
0
 public WcfNetPipeClient(string pipeName, object callbackInstance = null, bool autoClose = true) :
     base(null, null, callbackInstance, autoClose)
 {
     Binding    = WcfServiceHelper.CreateNamedPipesBinding();
     ServiceUrl = WcfServiceHelper.GetNamedPipeServiceUrl(pipeName);
 }