Drop this one too
[mono.git] / mcs / class / System.ServiceModel.Routing / System.ServiceModel.Routing.Configuration / BackupEndpointCollection.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Collections.ObjectModel;
4 using System.Configuration;
5 using System.ServiceModel;
6 using System.ServiceModel.Channels;
7 using System.ServiceModel.Configuration;
8 using System.ServiceModel.Description;
9 using System.ServiceModel.Dispatcher;
10
11 namespace System.ServiceModel.Routing.Configuration
12 {
13         [ConfigurationCollection (typeof (BackupEndpointElement))]
14         public class BackupEndpointCollection : ConfigurationElementCollection
15         {
16                 public BackupEndpointCollection ()
17                 {
18                 }
19
20                 public void Add (BackupEndpointElement element)
21                 {
22                         BaseAdd (element);
23                 }
24
25                 protected override ConfigurationElement CreateNewElement ()
26                 {
27                         return new BackupEndpointElement ();
28                 }
29
30                 protected override object GetElementKey (ConfigurationElement element)
31                 {
32                         return ((BackupEndpointElement) element).EndpointName;
33                 }
34
35                 public void Remove (BackupEndpointElement element)
36                 {
37                         BaseRemove (element);
38                 }
39         }
40 }