/// <summary> /// Creates a new <see cref="AspxAppDirectory"/> with the specified path and parent. /// </summary> /// <param name="path">The full path of the web application root.</param> /// <param name="parent">The parent directory to which this directory will belong.</param> public AspxAppDirectory(string path, IDirectory parent) : base(path, parent) { virtPath = HttpWebServer.GetDirectoryPath(this); CreateAssemblyInBin(path); CreateAppHost(); configFileWatcher.Path = path; configFileWatcher.Filter = "Web.config"; configFileWatcher.Created += new FileSystemEventHandler(configFileWatcher_Changed); configFileWatcher.Changed += new FileSystemEventHandler(configFileWatcher_Changed); configFileWatcher.Deleted += new FileSystemEventHandler(configFileWatcher_Changed); configFileWatcher.Renamed += new RenamedEventHandler(configFileWatcher_Renamed); configFileWatcher.EnableRaisingEvents = true; LoadWebConfig(System.IO.Path.Combine(path, "Web.config")); }
/// <summary> /// Creates a new <see cref="PhpAppDirectory"/> with the specified path and parent. /// </summary> /// <param name="path">The full path of the web application root.</param> /// <param name="parent">The parent directory to which this directory will belong.</param> public PhpAppDirectory(string path, IDirectory parent) : base(path, parent) { virtPath = HttpWebServer.GetDirectoryPath(this); }