[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 编写于 2024-08-09 00:30:41 石头 提交于 2024-08-10 14:22:24
X
using System.Net.Sockets;
using NewLife.Net.Sockets;

namespace NewLife.Net.Smtp
{
    /// <summary>Smtp服务器</summary>
    public class SmtpServer : NetServer<SmtpSession>
    {
        //TODO 未实现Smtp服务端

        #region 属性
        //private Dictionary<Int32, SmtpSession> _Sessions;
        ///// <summary>会话集合</summary>
        //public IDictionary<Int32, SmtpSession> Sessions { get { return _Sessions ?? (_Sessions = new Dictionary<int, SmtpSession>()); } }
        #endregion

        /// <summary>实例化一个Smtp服务器</summary>
        public SmtpServer()
        {
            Port = 25;
            ProtocolType = ProtocolType.Tcp;
        }
    }
}