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