using System; namespace VNLib.Plugins.Extensions.Loading.Events { /// /// When added to a method schedules it as a callback on a specified interval when /// the plugin is loaded, and stops when unloaded /// [AttributeUsage(AttributeTargets.Method)] public class ConfigurableAsyncIntervalAttribute : Attribute { internal readonly string IntervalPropertyName; internal readonly IntervalResultionType Resolution; /// /// Initializes a with the specified /// interval property name /// /// The configuration property name for the event interval /// The time resoltion for the event interval public ConfigurableAsyncIntervalAttribute(string configPropName, IntervalResultionType resolution) { IntervalPropertyName = configPropName; Resolution = resolution; } } }