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