【发布时间】:2011-09-22 14:48:23
【问题描述】:
在我们的服务器中,我们在 app.config 中配置端口如下:
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" port="1234" />
</channels>
</application>
</system.runtime.remoting>
</configuration>
然后我们继续使用以下 C# 代码配置服务器:
RemotingConfiguration.Configure(string.Format("{0}{1}", appFolder, "app.exe.config"), false);
配置完不手动解析文件后如何引用端口号?
【问题讨论】:
标签: c# .net remoting .net-remoting