private static Dictionary<string, AssemblyResourceStore> InitializeAssemblyResourceStores()
 {
     var dictionary = new Dictionary<string, AssemblyResourceStore>();
     var store = new AssemblyResourceStore(typeof (AssemblyResourceProvider), "/views/inputbuilders",
         "MvcContrib.UI.InputBuilder.Views.InputBuilders");
     dictionary.Add(store.VirtualPath, store);
     return dictionary;
 }
Пример #2
0
        private static Dictionary <string, AssemblyResourceStore> InitializeAssemblyResourceStores()
        {
            var dictionary = new Dictionary <string, AssemblyResourceStore>();
            var store      = new AssemblyResourceStore(typeof(AssemblyResourceProvider), "/views/inputbuilders",
                                                       "MvcContrib.UI.InputBuilder.Views.InputBuilders");

            dictionary.Add(store.VirtualPath, store);
            return(dictionary);
        }
        public void RegisterAreaEmbeddedResources(IApplicationBus bus)
        {
            Type areaType = GetType();
            var resourceStore = new AssemblyResourceStore(areaType, "/areas/" + AreaName.ToLower(), areaType.Namespace,
                GetMap());
            AssemblyResourceManager.RegisterAreaResources(resourceStore);

            if (EmbedResourceRegisted != null)
            {
                EmbedResourceRegisted(this, new RegistedEmbedresourceEventArgs(bus));
            }
        }
Пример #4
0
        public void RegisterAreaEmbeddedResources(IApplicationBus bus)
        {
            Type areaType      = GetType();
            var  resourceStore = new AssemblyResourceStore(areaType, "/areas/" + AreaName.ToLower(), areaType.Namespace,
                                                           GetMap());

            AssemblyResourceManager.RegisterAreaResources(resourceStore);

            if (EmbedResourceRegisted != null)
            {
                EmbedResourceRegisted(this, new RegistedEmbedresourceEventArgs(bus));
            }
        }
Пример #5
0
 public static void RegisterAreaResources(AssemblyResourceStore assemblyResourceStore)
 {
     AssemblyResourceStores.Add(assemblyResourceStore.VirtualPath, assemblyResourceStore);
 }
 public static void RegisterAreaResources(AssemblyResourceStore assemblyResourceStore)
 {
     AssemblyResourceStores.Add(assemblyResourceStore.VirtualPath, assemblyResourceStore);
 }
 public AssemblyResourceVirtualFile(string virtualPath, AssemblyResourceStore resourceStore, string embedVirtualPath)
     : base(virtualPath)
 {
     this.resourceStore = resourceStore;
     this.path = embedVirtualPath;
 }
 public AssemblyResourceVirtualFile(string virtualPath, AssemblyResourceStore resourceStore)
     : base(virtualPath)
 {
     this.resourceStore = resourceStore;
     this.path = VirtualPathUtility.ToAppRelative(virtualPath);
 }