BackupEndpointCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示包含 BackupEndpointElement 物件集合的組態項目。
public ref class BackupEndpointCollection : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.ServiceModel.Routing.Configuration.BackupEndpointElement))]
public class BackupEndpointCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.ServiceModel.Routing.Configuration.BackupEndpointElement))>]
type BackupEndpointCollection = class
inherit ConfigurationElementCollection
Public Class BackupEndpointCollection
Inherits ConfigurationElementCollection
- 繼承
- 屬性
備註
BackupEndpointCollection 包含依順序排列的端點集合,訊息會在傳送至主要端點期間發生通訊例外狀況時,傳輸至這些端點。
如果傳送至所含 EndpointName 的主要端點失敗,通訊例外狀況會失敗,路由服務會嘗試將訊息傳送至 BackupEndpointCollection中包含的第一個端點。 如果這項作業同樣因為通訊例外狀況而失敗,則路由服務將嘗試傳送訊息至集合中包含的下一個端點,直到傳送嘗試成功、傳回通訊例外狀況以外的錯誤,或是集合中所有端點都傳回錯誤為止。
在下列範例中,如果傳送至名為 「Destination」 的主要端點傳回通訊例外狀況,服務會嘗試將訊息傳送至 「alternateServiceQueue」。 如果這項嘗試同樣傳回通訊例外狀況,則路由服務將嘗試傳送訊息至集合中的下一個端點。
<filterTables>
<filterTable name="filterTable1">
<add filterName="MatchAllFilter1" endpointName="Destination" backupList="backupEndpointList"/>
</filterTable>
</filterTables>
<backupLists>
<backupList name="backupEndpointList">
<add endpointName="backupServiceQueue" />
<add endpointName="alternateServiceQueue" />
</backupList>
</backupLists>
建構函式
BackupEndpointCollection() |
建立 BackupEndpointCollection 類別的新執行個體。 |
屬性
方法
明確介面實作
ICollection.CopyTo(Array, Int32) |
將 ConfigurationElementCollection 複製至陣列。 (繼承來源 ConfigurationElementCollection) |
擴充方法
Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
OfType<TResult>(IEnumerable) |
根據指定的型別來篩選 IEnumerable 的項目。 |
AsParallel(IEnumerable) |
啟用查詢的平行化作業。 |
AsQueryable(IEnumerable) |
將 IEnumerable 轉換成 IQueryable。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應