示例#1
0
        private void WatcherOnChange(string path)
        {
            Logger.Info(this, "Detected that package " + path + " was changed");
            Package newPackage = FilePackage.Open(path);

            this.Update(newPackage);
        }
示例#2
0
		public static Package Open(string path) {
			FilePackage package = new FilePackage {
				_path = System.IO.Path.GetFullPath(path),
				Source = path
			};
			return (package);
		}
示例#3
0
        public static Package Open(string path)
        {
            FilePackage package = new FilePackage {
                _path  = System.IO.Path.GetFullPath(path),
                Source = path
            };

            return(package);
        }