using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperSocket.Common;
using System.Configuration;
namespace SuperWebSocket.Config
{
///
/// SubProtocol configuration
///
public class SubProtocolConfig : ConfigurationElementBase
{
///
/// Initializes a new instance of the class.
///
public SubProtocolConfig()
: base(false)
{
}
///
/// Gets the type.
///
[ConfigurationProperty("type", IsRequired = false)]
public string Type
{
get
{
return (string)this["type"];
}
}
///
/// Gets the commands.
///
[ConfigurationProperty("commands")]
public CommandConfigCollection Commands
{
get
{
return this["commands"] as CommandConfigCollection;
}
}
}
}