private static void LoadAllResourcesFromAssembly(
     Assembly assembly,
     ICollection <string> uriRegistry,
     List <MetadataArtifactLoaderResource> loaders)
 {
     foreach (string resourceName in MetadataArtifactLoaderCompositeResource.GetManifestResourceNamesForAssembly(assembly))
     {
         MetadataArtifactLoaderCompositeResource.CreateAndAddSingleResourceLoader(assembly, resourceName, uriRegistry, loaders);
     }
 }
 private static void LoadResourcesFromAssembly(
     Assembly assembly,
     string resourceName,
     ICollection <string> uriRegistry,
     List <MetadataArtifactLoaderResource> loaders)
 {
     if (resourceName == null)
     {
         MetadataArtifactLoaderCompositeResource.LoadAllResourcesFromAssembly(assembly, uriRegistry, loaders);
     }
     else
     {
         if (!MetadataArtifactLoaderCompositeResource.AssemblyContainsResource(assembly, ref resourceName))
         {
             throw new System.Data.Entity.Core.MetadataException(Strings.UnableToLoadResource);
         }
         MetadataArtifactLoaderCompositeResource.CreateAndAddSingleResourceLoader(assembly, resourceName, uriRegistry, loaders);
     }
 }