protected override sealed void Initialize() { if (rootDirInfo == null) rootDirInfo = new DirectoryInfo(AppHost.Config.MarkdownSearchPath); if (rootDirInfo == null || ! rootDirInfo.Exists) throw new ApplicationException(String.Format("RootDir '{0}' for virtual path does not exist", rootDirInfo.FullName)); rootDir = new FileSystemVirtualDirectory(this, null, rootDirInfo); }
protected override sealed void Initialize() { if (RootDirInfo == null) RootDirInfo = new DirectoryInfo(AppHost.Config.RazorSearchPath); if (RootDirInfo == null || ! RootDirInfo.Exists) throw new ApplicationException( "RootDir '{0}' for virtual path does not exist".Fmt(RootDirInfo.FullName)); RootDir = new FileSystemVirtualDirectory(this, null, RootDirInfo); }
protected override sealed void Initialize() { if (RootDirInfo == null) { RootDirInfo = new DirectoryInfo(AppHost.Config.RazorSearchPath); } if (RootDirInfo == null || !RootDirInfo.Exists) { throw new ApplicationException( "RootDir '{0}' for virtual path does not exist".Fmt(RootDirInfo.FullName)); } RootDir = new FileSystemVirtualDirectory(this, null, RootDirInfo); }