/// <summary> /// オブジェクト生成。 /// 利用後にはDispose()で開放してください。 /// </summary> public BouyomiChanClient() { ClientChannel = new IpcClientChannel(); ChannelServices.RegisterChannel(ClientChannel, false); RemotingObject = (BouyomiChanRemoting)Activator.GetObject(typeof(BouyomiChanRemoting), "ipc://BouyomiChan/Remoting"); }
/// <summary> /// オブジェクト生成。 /// 利用後にはDispose()で開放してください。 /// </summary> public BouyomiChanClient() { ClientChannel = new IpcClientChannel("hogehoge", null); //チャンネル名は何でもいい ChannelServices.RegisterChannel(ClientChannel, false); RemotingObject = (BouyomiChanRemoting)Activator.GetObject(typeof(BouyomiChanRemoting), "ipc://BouyomiChan/Remoting"); }