src/Black.Beard.Ioc/ComponentModel/TypeDiscovery.cs
/// <summary>
///     Register all exported type in the specified assembly
/// </summary>
/// <param name="ass"></param>
Register all exported type in the specified assembly
Register all exported type in the specified assembly
private List<Type> Resolve(Assembly ass, Func<Type, bool> typeFilter)
        {
            var result = new List<Type>();
            if (ass != null && (FilterAssembly == null || FilterAssembly(ass)))
            {
                var n = ass.GetName();
                try
                {
                    result.AddRange(Register(ass, typeFilter));
                }
                catch (Exception e)
                {
                    OnRegisterException(e);
                    Trace.TraceError(e.ToString());
                }
            }
            return result;
        }
private List < Type > Resolve ( Assembly ass , Func < Type , bool > typeFilter ) { var result = new List < Type > ( ) ; if ( ass != null && ( FilterAssembly == null || FilterAssembly ( ass ) ) ) { var n = ass . GetName ( ) ; try { result . AddRange ( Register ( ass , typeFilter ) ) ; } catch ( Exception e ) { OnRegisterException ( e ) ; Trace . TraceError ( e . ToString ( ) ) ; } } return result ; }
Register all exported type in the specified assembly
Register all exported type in the specified assembly
//Debug.WriteLine($"assembly {ass.GetName().Name} analyzed");
ass
Assembly
None
typeFilter
Func<Type, bool>