using System.Configuration;
namespace Kreta.MessageBroker.Configuration
{
///
/// Message client configuration element collection
///
public class MessageClientConfigurationElementCollection : ConfigurationElementCollection
{
///
/// Collection type
///
public override ConfigurationElementCollectionType CollectionType
{
get { return ConfigurationElementCollectionType.BasicMap; }
}
///
/// Create new element
///
/// Configuration element
protected override ConfigurationElement CreateNewElement()
{
return new MessageClientConfigurationElement();
}
///
/// Get element key
///
/// Element
/// Element key
protected override object GetElementKey(ConfigurationElement element)
{
return ((MessageClientConfigurationElement)element).Name;
}
///
/// Get element name
///
protected override string ElementName
{
get { return MessageClientConfigurationElement.ElementName; }
}
}
}