收发日志数据体长度。默认64
智能大石头 authored at 2021-12-26 14:07:17
1.06 KiB
X
using System;
using System.ComponentModel;
using NewLife.Configuration;

namespace NewLife.Net
{
    /// <summary>网络设置</summary>
    [DisplayName("网络设置")]
    [Config("Socket")]
    public class Setting : Config<Setting>
    {
        #region 属性
        /// <summary>网络调试</summary>
        [Description("网络调试")]
        public Boolean Debug { get; set; }

        /// <summary>会话超时时间。默认20*60秒</summary>
        [Description("会话超时时间。默认20*60秒")]
        public Int32 SessionTimeout { get; set; } = 20 * 60;

        /// <summary>缓冲区大小。默认8k</summary>
        [Description("缓冲区大小。默认8k")]
        public Int32 BufferSize { get; set; } = 8 * 1024;

        /// <summary>收发日志数据体长度。默认64</summary>
        [Description("收发日志数据体长度。默认64")]
        public Int32 LogDataLength { get; set; } = 64;
        #endregion

        #region 方法
        /// <summary>实例化</summary>
        public Setting() { }
        #endregion
    }
}