Exemplo n.º 1
0
		public static void Register() {
			if(HttpContextHandler.Instance.Current == null || registered || DisableEmbeddedResources) {
				return;
			}
			lock(padLock) {
				if(!registered) {
					var resource = new VirtualResourceFile(ScriptPath, ScriptResourceName, typeof(ResourceRegistrator).Assembly);
					var pathProvider = new VirtualResourcePathProvider(new[] { resource });
					HostingEnvironment.RegisterVirtualPathProvider(pathProvider);
					registered = true;
				}
			}
		}
 private static bool FileInPath(string virtualPath, VirtualResourceFile c)
 {
     return(string.Equals(c.VirtualPath, virtualPath, StringComparison.InvariantCultureIgnoreCase));
 }
		private static bool FileInPath(string virtualPath, VirtualResourceFile c) {
			return string.Equals(c.VirtualPath, virtualPath, StringComparison.InvariantCultureIgnoreCase);
		}