Esempio n. 1
0
 public void AddView(string viewName, string assemblyName)
 {
     lock (_lock) {
         viewCache[viewName] = new EmbeddedView {
             Name = viewName, AssemblyFullName = assemblyName
         };
     }
 }
        public AssemblyResourceFile(EmbeddedView view, string virtualPath) :
            base(virtualPath)
        {
            if (view == null)
            {
                throw new ArgumentNullException("view", "EmbeddedView cannot be null.");
            }

            embeddedView = view;
        }
        public override VirtualFile GetFile(string virtualPath)
        {
            if (IsEmbeddedView(virtualPath))
            {
                EmbeddedView embeddedView = embeddedViews.FindEmbeddedView(virtualPath);
                return(new AssemblyResourceFile(embeddedView, virtualPath));
            }

            return(base.GetFile(virtualPath));
        }
 public void AddView(string viewName, string assemblyName) {
     lock (_lock) {
         viewCache[viewName] = new EmbeddedView { Name = viewName, AssemblyFullName = assemblyName };
     }
 }
        public AssemblyResourceFile(EmbeddedView view, string virtualPath) :
            base(virtualPath) {
            if(view == null) throw new ArgumentNullException("view", "EmbeddedView cannot be null.");

            embeddedView = view;
        }