v9.6.2017.0808   重构正向工程,基于映射表查找数据库字段类型到实体类型的映射
大石头 authored at 2017-08-08 21:38:06
993.00 B
X
using System.ComponentModel;
using NewLife.Xml;

namespace NewLife.Queue.Center
{
    /// <summary>
    /// 控制中心配置
    /// </summary>
    [DisplayName("控制中心配置")]
#if !__MOBILE__
    [XmlConfigFile(@"Config\CenterServer.config", 15000)]
#endif
    public class Setting : XmlConfig<Setting>
    {
        /// <summary>调试</summary>
        [Description("调试")]
        public bool Debug { get; set; } = true;
        /// <summary>网络端口</summary>
        [Description("网络端口")]
        public int Port { get; set; } = 3344;

        /// <summary>Broker不活跃最大允许时间,如果一个Broker超过此时间未发送心跳,则认为此Broker挂掉了;默认超时时间为10s;</summary>
        [Description("Broker不活跃最大允许时间,如果一个Broker超过此时间未发送心跳,则认为此Broker挂掉了;默认超时时间为10s;")]
        public int BrokerInactiveMaxMilliseconds { get; set; } = 10*1000;
    }
}