public EmbeddedResourceVirtualFile(EmbeddedResourceMetadata metadata, string virtualPath) : base(virtualPath) { if (metadata == null) { throw new ArgumentNullException("embeddedViewMetadata"); } this.metadata = metadata; }
public void AddResource(string resourceName, string assemblyName) { lock (_lock) { resourceCache[resourceName] = new EmbeddedResourceMetadata { Name = resourceName, AssemblyFullName = assemblyName }; } }