AgentMulder.Containers.Autofac.Patterns.FromAssemblies.BasedOn.Except.DoCreateRegistrations C# (CSharp) Method

DoCreateRegistrations() protected method

protected DoCreateRegistrations ( ITreeNode registrationRootElement, IStructuralMatchResult match ) : IEnumerable
registrationRootElement ITreeNode
match IStructuralMatchResult
return IEnumerable
        protected override IEnumerable<FilteredRegistrationBase> DoCreateRegistrations(ITreeNode registrationRootElement, IStructuralMatchResult match)
        {
            var matchedType = match.GetMatchedType("type") as IDeclaredType;
            if (matchedType != null)
            {
                ITypeElement typeElement = matchedType.GetTypeElement();
                if (typeElement != null)
                {
                    yield return new ExceptRegistration(registrationRootElement, typeElement);
                }
            }
        }