コード例 #1
0
        public void StartWatching(IBrowserRefresher refresher)
        {
            _refresher = refresher;

            _watcher = new FileChangeWatcher(_settings.Root, FileSet.Deep("*.*"), this);
            _watcher.Start();
        }
コード例 #2
0
        public void StartWatching(IBrowserRefresher refresher)
        {
            _refresher = refresher;

            _watcher = new FileChangeWatcher(_settings.Root, FileSet.Deep("*.*"), this);
            _watcher.Start();
        }
コード例 #3
0
ファイル: SampleBuilder.cs プロジェクト: aabenoja/Storyteller
 public SampleBuilder(ISampleCache cache, IFileSystem fileSystem, IBrowserRefresher browser, IEnumerable<ISampleScanner> scanners)
 {
     _cache = cache;
     _fileSystem = fileSystem;
     _browser = browser;
     _scanners = scanners;
 }
コード例 #4
0
        public SampleBuilder(ISampleCache cache, IBrowserRefresher browser, IEnumerable<ISampleScanner> scanners)
        {
            _cache = cache;
            _browser = browser;

            scanners.Each(x =>
            {
                var ext = x.Extension.ToLower();
                if (!ext.StartsWith(".")) ext = "." + ext;

                _scanners[ext] = x;
            });
        }
コード例 #5
0
        public SampleBuilder(ISampleCache cache, IBrowserRefresher browser, IEnumerable <ISampleScanner> scanners)
        {
            _cache   = cache;
            _browser = browser;

            scanners.Each(x =>
            {
                var ext = x.Extension.ToLower();
                if (!ext.StartsWith("."))
                {
                    ext = "." + ext;
                }

                _scanners[ext] = x;
            });
        }
コード例 #6
0
 public DocRunEndpoints(DocProject project, IBrowserRefresher refresher)
 {
     _project = project;
     _refresher = refresher;
 }
コード例 #7
0
 public DocRunEndpoints(DocProject project, IBrowserRefresher refresher)
 {
     _project   = project;
     _refresher = refresher;
 }