This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,45 @@
using System.Configuration;
namespace Kreta.MessageBroker.Configuration
{
/// <summary>
/// Message client configuration element collection
/// </summary>
public class MessageClientConfigurationElementCollection : ConfigurationElementCollection
{
/// <summary>
/// Collection type
/// </summary>
public override ConfigurationElementCollectionType CollectionType
{
get { return ConfigurationElementCollectionType.BasicMap; }
}
/// <summary>
/// Create new element
/// </summary>
/// <returns>Configuration element</returns>
protected override ConfigurationElement CreateNewElement()
{
return new MessageClientConfigurationElement();
}
/// <summary>
/// Get element key
/// </summary>
/// <param name="element">Element</param>
/// <returns>Element key</returns>
protected override object GetElementKey(ConfigurationElement element)
{
return ((MessageClientConfigurationElement)element).Name;
}
/// <summary>
/// Get element name
/// </summary>
protected override string ElementName
{
get { return MessageClientConfigurationElement.ElementName; }
}
}
}