Пример #1
0
        /// <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();
                });
            };
        }
Пример #2
0
        /// <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();
                });
            };
        }