using System.Timers; namespace EGFramework { public class EGBlazorController : IEGBehavior, IEGFramework { private EGProtocolSchedule? ProtocolSchedule { set; get; } private System.Timers.Timer ProcessTimer { set; get; } = new System.Timers.Timer(20); public void Init() { ProtocolSchedule = this.GetModule(); this.GetModule().SetDelay(100); ProcessTimer.Elapsed += this.Process; ProcessTimer.AutoReset = true; ProcessTimer.Enabled = true; } public void Start() { ProtocolSchedule?.EnabledTool(); // ProtocolSchedule?.EnabledTool(); ProtocolSchedule?.EnabledTool(); ProtocolSchedule?.EnabledTool(); this.GetModule(); this.GetModule(); this.GetModule(); } public void Process(object? source, ElapsedEventArgs e) { ProtocolSchedule?.CheckedProcess(); } public void Exit() { } } }