如何:配置信道
本主题介绍一项传统技术,保留该技术是为了向后兼容现有的应用程序,不建议对新的开发使用该技术。现在应该使用 Windows Communication Foundation (WCF) 来开发分布式应用程序。
下面的示例演示如何生成名称不同于“http”的 HttpChannel,并将其用于服务器应用程序。
示例
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown
type="Type,Assembly"
mode="Singleton"
objectUri="endpoint"
/>
</service>
<channels>
<channel ref="OtherChannel"/>
</channel>
</application>
<channels>
<channel
id="OtherChannel"
type="CompleteTypeInformation including versiong and strong-name information"
/>
</channels>
</system.runtime.remoting>
</configuration>
另请参见
参考
System.Runtime.Remoting.RemotingConfiguration Class
概念
远程应用程序的配置
信道
信道注册
服务器端注册
客户端注册
信道注册
其他资源
使用配置文件注册远程对象
.NET Framework 远程处理概述
生成日期:2010-02-13