Files
mono/mcs/class/System.ServiceModel.Routing/System.ServiceModel.Routing.Configuration/BackupListCollection.cs
T
Atsushi Eno 0e452537e7 2010-06-03 Atsushi Enomoto <[email protected]>
* BackupEndpointCollection.cs
	  BackupEndpointElement.cs
	  BackupListCollection.cs
	  FilterElement.cs
	  FilterElementCollection.cs
	  FilterTableEntryCollection.cs
	  FilterTableEntryElement.cs
	  NamespaceElement.cs
	  NamespaceElementCollection.cs
	  RoutingExtensionElement.cs
	  RoutingSection.cs
	  SoapProcessingExtensionElement.cs : implement to get working.


svn path=/trunk/mcs/; revision=158382
2010-06-03 06:32:09 +00:00

51 lines
1.1 KiB
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 (BackupEndpointCollection), AddItemName = "backupList")]
public class BackupListCollection : ConfigurationElementCollection
{
public void Add (BackupEndpointCollection element)
{
BaseAdd (element);
}
public void Clear ()
{
BaseClear ();
}
protected override ConfigurationElement CreateNewElement ()
{
return new BackupEndpointElement ();
}
protected override Object GetElementKey (ConfigurationElement element)
{
return ((BackupEndpointElement) element).EndpointName;
}
public void Remove (BackupEndpointCollection element)
{
BaseRemove (element);
}
public new BackupEndpointCollection this [string name] {
get {
foreach (BackupEndpointCollection c in this)
if (c.Name == name)
return c;
return null;
}
}
}
}