Exemplo n.º 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();
                });
            };
        }
Exemplo n.º 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();
                });
            };
        }