using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SuperSocket.SocketBase.Metadata { /// /// StatusInfo Metadata /// #if !SILVERLIGHT [Serializable] #endif [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class StatusInfoAttribute : Attribute { /// /// Initializes a new instance of the class. /// public StatusInfoAttribute() { OutputInPerfLog = true; } /// /// Initializes a new instance of the class. /// /// The key. public StatusInfoAttribute(string key) : this() { Key = key; } /// /// Gets or sets the key. /// /// /// The key. /// public string Key { get; set; } /// /// Gets or sets the name. /// /// /// The name. /// public string Name { get; set; } /// /// Gets or sets the short name. /// /// /// The short name. /// public string ShortName { get; set; } /// /// Gets or sets the format. /// /// /// The format. /// public string Format { get; set; } /// /// Gets or sets the order. /// /// /// The order. /// public int Order { get; set; } /// /// Gets or sets a value indicating whether [output in perf log]. /// /// /// true if [output in perf log]; otherwise, false. /// public bool OutputInPerfLog { get; set; } /// /// Gets or sets the type of the data. /// /// /// The type of the data. /// public Type DataType { get; set; } } }