v9.8.2018.0605   由DataReader直接映射实体列表,以支持netstandard的MySql和SQLite,且提升性能
大石头 authored at 2018-06-05 00:45:23
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;
    }
}