Src/Black.Beard.ComponentModel/ComponentModel/TypeDiscovery.cs
/// <summary>
/// try to load all referenced assemblies
/// </summary>
/// <param name="acceptAllVersion"></param>
try to load all referenced assemblies
try to load all referenced assemblies
public void EnsureAllAssembliesAreLoaded(bool acceptAllVersion = true)
        {
            AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
            try
            {
                HashSet<string> _hash = new HashSet<string>();
                foreach (var ass in Assemblies())
                    if (_hash.Add(ass.FullName))
                        EnsureAssemblyIsLoadedWithReferences(ass, acceptAllVersion, true, _hash);
            }
            finally
            {
                AppDomain.CurrentDomain.AssemblyResolve -= CurrentDomain_AssemblyResolve;
            }
        }
public void EnsureAllAssembliesAreLoaded ( bool acceptAllVersion = true ) { AppDomain . CurrentDomain . AssemblyResolve += CurrentDomain_AssemblyResolve ; try { HashSet < string > _hash = new HashSet < string > ( ) ; foreach ( var ass in Assemblies ( ) ) if ( _hash . Add ( ass . FullName ) ) EnsureAssemblyIsLoadedWithReferences ( ass , acceptAllVersion , true , _hash ) ; } finally { AppDomain . CurrentDomain . AssemblyResolve -= CurrentDomain_AssemblyResolve ; } }
try to load all referenced assemblies
try to load all referenced assemblies
acceptAllVersion
bool
None