发布0115
大石头 authored at 2020-01-15 01:11:37
966.00 B
X
using System;

namespace NewLife.Configuration
{
    /// <summary>配置文件特性</summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class ConfigFileAttribute : Attribute
    {
        /// <summary>配置文件名</summary>
        public String FileName { get; set; }

        ///// <summary>重新加载时间。单位:毫秒</summary>
        //public Int32 ReloadTime { get; set; }

        /// <summary>指定配置文件名</summary>
        /// <param name="fileName"></param>
        public ConfigFileAttribute(String fileName) => FileName = fileName;

        ///// <summary>指定配置文件名和重新加载时间(毫秒)</summary>
        ///// <param name="fileName"></param>
        ///// <param name="reloadTime"></param>
        //public ConfigFileAttribute(String fileName, Int32 reloadTime)
        //{
        //    FileName = fileName;
        //    ReloadTime = reloadTime;
        //}
    }
}