/// <summary> /// Constructs a new handler. /// </summary> /// <param name="project"></param> public SiteHandler(SiteProject project) { this.Project = project; this.ReloadScript = GetScript(); Service.Started += () => { // Bind the watcher this.Watcher = new SiteWatcher(project); this.Watcher.Bind(() => { this.Project.Update(); }); }; }