Cache\OutputCache.cs (19)
250bool isImpersonating = ((context != null && context.IsClientImpersonationConfigured) || HttpRuntime.IsOnUNCShareInternal);
254HttpRuntime.CheckFilePermission(fre.Path);
290return (CachedVary) HttpRuntime.Cache.InternalCache.Add(key, cachedVary, null);
295return (ControlCachedVary) HttpRuntime.Cache.InternalCache.Add(key, cachedVary, null);
332if (HttpRuntime.UseIntegratedPipeline) {
382if (kernelCacheUrl != null && HttpRuntime.Cache.InternalCache.Get(key) == null) {
384if (HttpRuntime.UseIntegratedPipeline) {
453if (HttpRuntime.Cache.InternalCache.Get(depKey) != null) {
471HttpRuntime.Cache.InternalCache.Insert(depKey, new DependencyCacheEntry(oceKey, kernelKey, providerName), new CacheInsertOptions() {
537result = HttpRuntime.Cache.InternalCache.Get(key);
572result = HttpRuntime.Cache.InternalCache.Get(key);
593HttpRuntime.Cache.InternalCache.Remove(key);
646HttpRuntime.Cache.InternalCache.Remove(key);
700HttpRuntime.Cache.InternalCache.Insert(cachedVaryKey, cachedVary, null);
725HttpRuntime.Cache.InternalCache.Insert(fragmentKey, fragment, new CacheInsertOptions() {
741Object d = HttpRuntime.Cache.InternalCache.Add(depKey, new DependencyCacheEntry(fragmentKey, null, provider.Name),
814HttpRuntime.Cache.InternalCache.Insert(cachedVaryKey, cachedVary, null);
839HttpRuntime.Cache.InternalCache.Insert(rawResponseKey, rawResponse, new CacheInsertOptions() {
862Object d = HttpRuntime.Cache.InternalCache.Add(depKey, new DependencyCacheEntry(rawResponseKey, oce.KernelCacheUrl, provider.Name),
Compilation\BuildManager.cs (66)
148Debug.Trace("BuildManager", "InitializeBuildManager " + HttpRuntime.FusionInited);
149if (!HttpRuntime.FusionInited)
153if (HttpRuntime.TrustLevel == null)
217typeof(HttpRuntime).Assembly,
397_globalAsaxVirtualPath = HttpRuntime.AppDomainAppVirtualPathObject.SimpleCombine(
400_webHashFilePath = Path.Combine(HttpRuntime.CodegenDirInternal, "hash\\hash.web");
434_excludedTopLevelDirectories.Add(HttpRuntime.BinDirectoryName);
435_excludedTopLevelDirectories.Add(HttpRuntime.CodeDirectoryName);
436_excludedTopLevelDirectories.Add(HttpRuntime.ResourcesDirectoryName);
437_excludedTopLevelDirectories.Add(HttpRuntime.LocalResourcesDirectoryName);
438_excludedTopLevelDirectories.Add(HttpRuntime.WebRefDirectoryName);
439_excludedTopLevelDirectories.Add(HttpRuntime.ThemesDirectoryName);
445_forbiddenTopLevelDirectories.Add(HttpRuntime.CodeDirectoryName);
446_forbiddenTopLevelDirectories.Add(HttpRuntime.ResourcesDirectoryName);
447_forbiddenTopLevelDirectories.Add(HttpRuntime.LocalResourcesDirectoryName);
448_forbiddenTopLevelDirectories.Add(HttpRuntime.WebRefDirectoryName);
449_forbiddenTopLevelDirectories.Add(HttpRuntime.ThemesDirectoryName);
467_codeGenCache = new StandardDiskBuildResultCache(HttpRuntime.CodegenDirInternal);
486HttpRuntime.BinDirectoryInternal);
491_codeGenCache = new StandardDiskBuildResultCache(HttpRuntime.CodegenDirInternal);
508_codeGenCache = new StandardDiskBuildResultCache(HttpRuntime.CodegenDirInternal);
512string targetBinDir = Path.Combine(_precompTargetPhysicalDir, HttpRuntime.BinDirectoryName);
526string licAssemblyPath = Path.Combine(HttpRuntime.BinDirectoryInternal, LicensesAssemblyName + ".dll");
587specialFilesHashCodeCombiner.AddObject(HttpRuntime.AppDomainAppPathInternal);
590string aspBinaryFileName = typeof(HttpRuntime).Module.FullyQualifiedName;
630string binPhysicalDir = HttpRuntime.BinDirectoryInternal;
635specialFilesHashCodeCombiner.AddResourcesDirectory(HttpRuntime.ResourcesDirectoryVirtualPath.MapPathInternal());
637specialFilesHashCodeCombiner.AddDirectory(HttpRuntime.WebRefDirectoryVirtualPath.MapPathInternal());
639specialFilesHashCodeCombiner.AddDirectory(HttpRuntime.CodeDirectoryVirtualPath.MapPathInternal());
688HttpRuntime.FileChangesMonitor.StartMonitoringFile(_webHashFilePath,
728HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.BuildManagerChange, message);
764string preStartInitListPath = Path.Combine(HttpRuntime.CodegenDirInternal, "preStartInitList.web");
917CompilationSection compConfig = MTConfigUtil.GetCompilationConfig(HttpRuntime.AppDomainAppVirtualPath);
1058VirtualPath virtualDir = HttpRuntime.ResourcesDirectoryVirtualPath;
1067CompileCodeDirectory(HttpRuntime.WebRefDirectoryVirtualPath, CodeDirectoryType.WebReferences,
1093VirtualPath virtualDir = HttpRuntime.CodeDirectoryVirtualPath;
1137while (type.Assembly != typeof(HttpRuntime).Assembly) {
1403object o = HttpRuntime.CreatePublicInstanceByWebObjectActivator(buildProviderType);
1423object o = HttpRuntime.CreatePublicInstanceByWebObjectActivator(buildProviderType);
1456if (HttpRuntime.AppDomainAppVirtualPathObject == virtualPath)
1459int appPathLen = HttpRuntime.AppDomainAppVirtualPathString.Length;
1530if (HttpRuntime.IsFullTrust) {
1791VirtualPath localResDir = virtualDir.SimpleCombineWithDir(HttpRuntime.LocalResourcesDirectoryName);
1810HttpRuntime.StartListeningToLocalResourcesDirectory(localResDir);
2001VirtualPath virtualDir = HttpRuntime.CodeDirectoryVirtualPath;
2058if (virtualCodeDir == HttpRuntime.CodeDirectoryVirtualPath) {
2070else if (virtualCodeDir == HttpRuntime.ResourcesDirectoryVirtualPath) {
2078HttpRuntime.WebRefDirectoryVirtualPath.VirtualPathString, 0, HttpRuntime.WebRefDirectoryVirtualPath.VirtualPathString.Length,
2082virtualCodeDir = HttpRuntime.WebRefDirectoryVirtualPath;
2087else if (String.Compare(virtualCodeDir.FileName, HttpRuntime.LocalResourcesDirectoryName,
2544PrecompileApp(HttpRuntime.AppDomainAppVirtualPathObject, excludedVirtualPaths);
2606string targetBinDir = Path.Combine(_precompTargetPhysicalDir, HttpRuntime.BinDirectoryName);
2607CopyCompiledAssembliesToDestinationBin(HttpRuntime.CodegenDirInternal, targetBinDir);
2779_isPrecompiledApp = ReadPrecompMarkerFile(HttpRuntime.AppDomainAppPathInternal,
2867string appPhysicalDir = Path.Combine(HttpRuntime.AppDomainAppPathInternal, HttpRuntime.ThemesDirectoryName);
2908(StringUtil.EqualsIgnoreCase(child.Name, HttpRuntime.CodeDirectoryName) ||
2909StringUtil.EqualsIgnoreCase(child.Name, HttpRuntime.ResourcesDirectoryName) ||
2910StringUtil.EqualsIgnoreCase(child.Name, HttpRuntime.WebRefDirectoryName))) {
2918HttpRuntime.LocalResourcesDirectoryName)) {
3199if (HttpRuntime.IsFullTrust) {
3340resxDir = Path.Combine(HttpRuntime.CodegenDirInternal, CodegenResourceDirectoryName);
3353string userCachePath = Path.Combine(HttpRuntime.CodegenDirInternal, "UserCache");
3383new FileIOPermission(FileIOPermissionAccess.AllAccess, HttpRuntime.CodegenDirInternal).Assert();
3394new FileIOPermission(FileIOPermissionAccess.AllAccess, HttpRuntime.CodegenDirInternal).Assert();
FileChangesMonitor.cs (27)
446hr = UnsafeNativeMethods.DirMonOpen(dir, HttpRuntime.AppDomainAppId, watchSubtree, notifyFilter, dirMon.FcnMode, myCallback, out _ndirMonCompletionPtr);
601HttpRuntime.FileChangesMonitor.RemoveAliases(_anyFileMon);
609HttpRuntime.FileChangesMonitor.RemoveAliases(fileMon);
744HttpRuntime.FileChangesMonitor.RemoveAliases(fileMon);
954int indexStart = fileName.IndexOf(HttpRuntime.LocalResourcesDirectoryName, StringComparison.OrdinalIgnoreCase);
956int dirNameLength = indexStart + HttpRuntime.LocalResourcesDirectoryName.Length;
1014UnsafeNativeMethods.GrowFileNotificationBuffer( HttpRuntime.AppDomainAppId, _watchSubtree );
1135if (!HttpRuntime.FileChangesMonitor.IsDirNameMonitored(fullPath, fileName)) {
1154Debug.Dump("FileChangesMonitor", HttpRuntime.FileChangesMonitor);
1400HttpRuntime.BinDirectoryName,
1401HttpRuntime.ResourcesDirectoryName,
1402HttpRuntime.CodeDirectoryName,
1403HttpRuntime.WebRefDirectoryName,
1404HttpRuntime.BrowsersDirectoryName
1479SR.GetString(message, HttpRuntime.GetSafePath(path)) +
1481SR.GetString(SR.App_Virtual_Path, HttpRuntime.AppDomainAppVirtualPath),
1482path, HttpRuntime.AppDomainAppVirtualPath, hr);
1485return new HttpException(SR.GetString(message, HttpRuntime.GetSafePath(path)), hr);
1546if (_FCNMode == 2 && HttpRuntime.AppDomainAppPathInternal != null) {
1547_appPathInternal = GetFullPath(HttpRuntime.AppDomainAppPathInternal);
1578if (dirName.IndexOf(HttpRuntime.LocalResourcesDirectoryName, StringComparison.OrdinalIgnoreCase) > -1) {
1810throw new HttpException(SR.GetString(SR.Invalid_file_name_for_monitoring, HttpRuntime.GetSafePath(alias)));
2054HttpRuntime.SetShutdownMessage(
2074HttpRuntime.SetShutdownMessage(SR.GetString(SR.Change_notification_critical_dir));
2118throw new HttpException(SR.GetString(SR.Invalid_file_name_for_monitoring, HttpRuntime.GetSafePath(alias)));
2127throw new HttpException(SR.GetString(SR.Invalid_file_name_for_monitoring, HttpRuntime.GetSafePath(alias)));
2176throw new HttpException(SR.GetString(SR.Invalid_file_name_for_monitoring, HttpRuntime.GetSafePath(alias)));