AgentMulder.Containers.StructureMap.Patterns.Scan.AddAllTypesOfGeneric.GetBasedOnRegistrations C# (CSharp) Метод

GetBasedOnRegistrations() публичный Метод

public GetBasedOnRegistrations ( ITreeNode registrationRootElement ) : IEnumerable
registrationRootElement ITreeNode
Результат IEnumerable
        public override IEnumerable<FilteredRegistrationBase> GetBasedOnRegistrations(ITreeNode registrationRootElement)
        {
            IStructuralMatchResult match = Match(registrationRootElement);

            if (match.Matched)
            {
                var matchedType = match.GetMatchedType("type") as IDeclaredType;
                if (matchedType != null)
                {
                    ITypeElement typeElement = matchedType.GetTypeElement();
                    if (typeElement != null)
                    {
                        yield return new StructureMapServiceRegistration(registrationRootElement, typeElement);
                    }
                }
            }
        }