Beispiel #1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public IpcClient(int id)
        {
            // クライアントチャンネルの生成
            IpcClientChannel channel = new IpcClientChannel();

            // チャンネルを登録
            ChannelServices.RegisterChannel(channel, true);

            // リモートオブジェクトを取得
            RemoteObject = Activator.GetObject(typeof(IpcData), "ipc://VisualBat" + id + "/Breakpoint") as IpcData;
        }
Beispiel #2
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public IpcServer(int id)
        {
            // サーバーチャンネルの生成
            IpcServerChannel channel = new IpcServerChannel("VisualBat" + id);

            // チャンネルを登録
            ChannelServices.RegisterChannel(channel, true);

            // リモートオブジェクトを生成して公開
            RemoteObject = new IpcData();
            RemotingServices.Marshal(RemoteObject, "Breakpoint", typeof(IpcData));
        }