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

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

示例

<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 远程处理概述

Footer image

版权所有 (C) 2007 Microsoft Corporation。保留所有权利。