init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue