public void AddResource(string resourceName, string assemblyName)
 {
     lock (_lock)
     {
         resourceCache[resourceName] = new EmbeddedResourceMetadata
         {
             ResourceName     = resourceName,
             AssemblyFullName = assemblyName
         };
     }
 }
        public EmbeddedResourceFileInfo(EmbeddedResourceMetadata metadata)
        {
            if (metadata == null)
            {
                throw new ArgumentNullException(nameof(metadata));
            }

            this.metadata = metadata;
            assembly      = GetResourceAssembly();
            Name          = metadata.ResourceName;
            LastModified  = DateTimeOffset.UtcNow;
        }