Exemple #1
0
 public void Start()
 {
     //TODO: how to find the services dir
     //TODO: how to get the bottles dir
     //TODO: do we need a custom config?
     string baseDir = ConfigurationManager.AppSettings["BottlesDirectory"]
                      ?? Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bottles");
     _fs = new DotNetFileSystem();
     Magnum.FileSystem.Directory bottlesDir = _fs.GetDirectory(baseDir);
     _watcher = new BottleWatcher();
     _cleanup = _watcher.Watch(bottlesDir.Name.GetPath(), CopyToServices);
 }
Exemple #2
0
        public void Start()
        {
            //TODO: how to find the services dir
            //TODO: how to get the bottles dir
            //TODO: do we need a custom config?
            string baseDir = ConfigurationManager.AppSettings["BottlesDirectory"]
                             ?? Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bottles");

            _fs = new DotNetFileSystem();
            Magnum.FileSystem.Directory bottlesDir = _fs.GetDirectory(baseDir);
            _watcher = new BottleWatcher();
            _cleanup = _watcher.Watch(bottlesDir.Name.GetPath(), CopyToServices);
        }
Exemple #3
0
 public void Stop()
 {
     _watcher = null;
     _cleanup.Dispose();
 }
Exemple #4
0
 public void Stop()
 {
     _watcher = null;
     _cleanup.Dispose();
 }