WatchBinariesAt() public method

public WatchBinariesAt ( string directory ) : void
directory string
return void
Ejemplo n.º 1
0
        public Task <SystemRecycled> Start(EngineMode mode)
        {
            _mode = mode;

            var listener = bootstrap(mode);


            return(listener.Task.ContinueWith(x =>
            {
                _watcher = new AppDomainFileChangeWatcher(Recycle);
                _watcher.WatchBinariesAt(_path.AppendPath("bin"));

                LatestSystemRecycled = x.Result;

                return x.Result;
            }));
        }
        public Task <SystemRecycled> Start()
        {
            var listener = bootstrap();


            return(listener.Task.ContinueWith(x =>
            {
                if (!DisableAppDomainFileWatching)
                {
                    _watcher = new AppDomainFileChangeWatcher(() => Recycle());
                    _watcher.WatchBinariesAt(Project.ProjectPath.AppendPath("bin"));
                }

                LatestSystemRecycled = x.Result;

                return x.Result;
            }));
        }