不用配置文件,用代码怎么写Remoting的配置呢?比如下面这段配置文件,怎么翻译成代码?<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<client>
<wellknown type="RemotingObject.MyObject,RemotingObject" objectUri="cRemotingClass" mode="Singleton" />
</client>
<channels>
<channel port="1011" ref="http">
<serverProviders>
<provider ref="wsdl" />
<formatter ref="soap" typeFilterLevel="Full" />
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
<configuration>
<system.runtime.remoting>
<application>
<client>
<wellknown type="RemotingObject.MyObject,RemotingObject" objectUri="cRemotingClass" mode="Singleton" />
</client>
<channels>
<channel port="1011" ref="http">
<serverProviders>
<provider ref="wsdl" />
<formatter ref="soap" typeFilterLevel="Full" />
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货