static AssemblyResourceProvider()
 {
     ResourcePaths = new Dictionary<string, AssemblyResource>();
     var resource = new AssemblyResource() {
         VirtualPath = "/views/inputbuilders",
         TypeToLocateAssembly = typeof(AssemblyResourceProvider),
         Namespace = "MvcContrib.UI.InputBuilder.Views.InputBuilders" };
     AddResource(resource);
 }
Пример #2
0
        static AssemblyResourceProvider()
        {
            ResourcePaths = new Dictionary <string, AssemblyResource>();
            var resource = new AssemblyResource()
            {
                VirtualPath          = "/views/inputbuilders",
                TypeToLocateAssembly = typeof(AssemblyResourceProvider),
                Namespace            = "MvcContrib.UI.InputBuilder.Views.InputBuilders"
            };

            AddResource(resource);
        }
Пример #3
0
        private bool ResourceExists(AssemblyResource assemblyResource, string path)
        {
            var name = assemblyResource.GetFullyQualifiedTypeFromPath(path);

            return(assemblyResource.TypeToLocateAssembly.Assembly.GetManifestResourceNames().Any(s => s.ToLower().Equals(name)));
        }
Пример #4
0
 public static void AddResource(AssemblyResource assemblyResource)
 {
     ResourcePaths.Add(assemblyResource.VirtualPath, assemblyResource);
 }
 public AssemblyResourceVirtualFile(string virtualPath, AssemblyResource resource)
     : base(virtualPath)
 {
     _resource = resource;
     path      = VirtualPathUtility.ToAppRelative(virtualPath);
 }
 public static void AddResource(AssemblyResource assemblyResource)
 {
     ResourcePaths.Add(assemblyResource.VirtualPath, assemblyResource);
 }
 private bool ResourceExists(AssemblyResource assemblyResource, string path)
 {
     var name = assemblyResource.GetFullyQualifiedTypeFromPath(path);
     return assemblyResource.TypeToLocateAssembly.Assembly.GetManifestResourceNames().Any(s => s.ToLower().Equals(name));
 }