如何:配置信道
下面的示例演示如何生成名称不同于“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 远程处理概述
版权所有 (C) 2007 Microsoft Corporation。保留所有权利。