コード例 #1
0
        static void Main(string[] args)
        {
            ChannelFactory <IUtils> pipeFactory =
                new ChannelFactory <IUtils>(
                    new NetNamedPipeBinding(),
                    new EndpointAddress(
                        "net.pipe://localhost/Pipepipe"));

            IUtils pipeProxy =
                pipeFactory.CreateChannel();

            pipeProxy.PostPID(Process.GetCurrentProcess().Id);
        }