如何:在配置文件中创建一个信道模板

本主题介绍一项传统技术,保留该技术是为了向后兼容现有的应用程序,不建议对新的开发使用该技术。现在应该使用  Windows Communication Foundation (WCF) 来开发分布式应用程序。

下面的示例说明如何在配置文件中创建一个信道模板。

示例

<configuration>
   <system.runtime.remoting>
      <application>
      </application>
      <channels>
         <channel 
            id="MyChannel"
            type="MyChannel,MyChannelAssembly"
         >
            <clientProviders> 
               <formatter ref="soap"> 
               </formatter>
               <provider 
                  type="Channels.AuthenticationSink,MyChannels"
               />
            </clientProviders>
         </channel>
      </channels>
   </system.runtime.remoting>
</configuration>

另请参见

参考

System.Runtime.Remoting.RemotingConfiguration Class

概念

信道注册
远程应用程序的配置
远程对象配置

其他资源

使用配置文件注册远程对象
.NET Framework 远程处理概述
.NET Framework 远程处理概述

生成日期:2010-02-13