示例#1
0
 public static void Start()
 {
     Ctx = new InstanceContext(new ActionClient());
     Svr = new DuplexChannelFactory <SysAction.IService>(
         Ctx,
         new NetNamedPipeBinding(),
         new EndpointAddress("net.pipe://localhost/ACTION")).CreateChannel();
     Svr.Connect();
 }