Remoting安全设置
https://www.uedbox.com/post/9580/
secure="true"
<channel ref="tcp" secure="true">
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.Security.Permissions;
// 创建并注册 TCP 信道
// 将信道的安全属性设置为 true
TcpChannel clientRemotingChannel = new TcpChannel();
ChannelServices.RegisterChannel(clientRemotingChannel, true);
IHello hello = (IHello)Activator.GetObject(typeof(IHello), "tcp://localhost:8077/Hello.rem");
string vvv = hello.B("eeewwe");
System.Runtime.Remoting.RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, true);