クライアントコードがリモーティングオブジェクトについて必要なものをすべて知っていることを考えれば、最も簡単な方法は何ですか?.NETリモートサーバーオブジェクトに接続する最も簡単な方法は何ですか
ChannelServices.RegisterChannel(new HttpChannel(), false);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(IRemoteServer), "RemoteServer.rem", WellKnownObjectMode.Singleton);
MyServerObject = (IRemoteServer)Activator.GetObject(
typeof(IRemoteServer),
String.Format("tcp://{0}:{1}/RemoteServer.rem", server, port));