protected sealed override void Initialize() { if (RootDirInfo == null) RootDirInfo = new DirectoryInfo(AppHost.Config.WebHostPhysicalPath); if (RootDirInfo == null || !RootDirInfo.Exists) throw new Exception($"RootDir '{RootDirInfo.FullName}' for virtual path does not exist"); 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.WebHostPhysicalPath); } 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); }