protected override void OnStart(string[] args) { IEnumerable<ApplicationElement> applications = GetApplicationElements(); lock (this.locker) { this.isRunning = true; this.coordinator.StartAndRefresh(applications); this.CreateWatcher(); } }