Files
mono/mcs/class/System.ServiceModel.Routing/System.ServiceModel.Routing.Configuration/BackupEndpointCollection.cs
T
Atsushi Eno dcbe785724 initial checkin for WCF 4.0 Routing.
svn path=/trunk/mcs/; revision=148023
2009-12-10 12:39:18 +00:00

41 lines
954 B
C#

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Configuration;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Configuration;
using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
namespace System.ServiceModel.Routing.Configuration
{
[ConfigurationCollection (typeof (BackupEndpointElement))]
public class BackupEndpointCollection : ConfigurationElementCollection
{
public BackupEndpointCollection ()
{
}
public void Add (BackupEndpointElement element)
{
BaseAdd (element);
}
protected override ConfigurationElement CreateNewElement ()
{
return new BackupEndpointElement ();
}
protected override object GetElementKey (ConfigurationElement element)
{
return ((BackupEndpointElement) element).EndpointName;
}
public void Remove (BackupEndpointElement element)
{
BaseRemove (element);
}
}
}