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(); }