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 AsyncIntervalAttribute : Attribute { internal readonly TimeSpan Interval; /// /// Intializes the with the specified timeout in milliseconds /// /// The interval in milliseconds public AsyncIntervalAttribute(int milliseconds) { Interval = TimeSpan.FromMilliseconds(milliseconds); } } }