HOW TO:設定通道

下列範例將示範如何以不同於 "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 遠端處理概觀

Footer image

Copyright © 2007 by Microsoft Corporation. All rights reserved.