public void Initialized(InitializedContext context) { timer.Elapsed += (sender, args) => { ServerMonitor.Tick(); }; timer.Start(); }