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 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 (!defaultProvider.FileExists(virtualPath) && IsEmbeddedView(virtualPath)) { EmbeddedView embeddedView = embeddedViews.FindEmbeddedView(virtualPath); return(new AssemblyResourceFile(embeddedView, virtualPath)); } return(defaultProvider.GetFile(virtualPath)); }