123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- using System.Configuration;
- namespace CassiniDev.Configuration
- {
- public class CassiniDevProfileElement : ConfigurationElement
- {
- /// <summary>
- /// Port is used as profile selector
- /// </summary>
- [ConfigurationProperty("port", DefaultValue = "*", IsKey = true, IsRequired = true)]
- public string Port
- {
- get
- {
- return (string)this["port"];
- }
- set
- {
- this["port"] = value;
- }
- }
- [ConfigurationProperty("path")]
- public string Path
- {
- get
- {
- return (string)this["path"];
- }
- set
- {
- this["path"] = value;
- }
- }
- [ConfigurationProperty("hostName")]
- public string HostName
- {
- get
- {
- return (string)this["hostName"];
- }
- set
- {
- this["hostName"] = value;
- }
- }
- [ConfigurationProperty("ip")]
- public string IpAddress
- {
- get
- {
- return (string)this["ip"];
- }
- set
- {
- this["ip"] = value;
- }
- }
- [ConfigurationProperty("ipMode", DefaultValue = CassiniDev.IPMode.Loopback)]
- public IPMode IpMode
- {
- get
- {
- return (IPMode)this["ipMode"];
- }
- set
- {
- this["ipMode"] = value;
- }
- }
- [ConfigurationProperty("v6", DefaultValue = false)]
- public bool IpV6
- {
- get
- {
- return (bool)this["v6"];
- }
- set
- {
- this["v6"] = value;
- }
- }
- [ConfigurationProperty("plugins")]
- public PluginElementCollection Plugins
- {
- get
- {
- return (PluginElementCollection)this["plugins"];
- }
- }
- }
- }
|