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。 |