我正在尝试<system.runtime.remoting>
从channels\channel ref="tcp" port="9090"
. App.config
配置文件如下所示。
<?xml version="1.0"?>
<configuration>
<system.runtime.remoting>
<application Name="MyServer">
<service>
<wellknown mode="Singleton" type="MyServer.Servers.SvrConnection, MyServer" objectUri="MyConnection" />
</service>
<channels>
<channel ref="tcp" port="9090">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
<clientProviders>
<formatter ref="binary" />
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
我将如何实现这一目标?请帮忙。