不用配置文件,用代码怎么写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>