AgentMulder.Containers.Autofac.Patterns.FromAssemblies.BasedOn.InNamespaceString.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 argument = match.GetMatchedElement("argument") as ICSharpArgument;
            if (argument != null)
            {
                INamespace @namespace = PsiExtensions.GetNamespaceDeclaration(argument.Value);
                if (@namespace != null)
                {
                    yield return new InNamespaceRegistration(registrationRootElement, @namespace, true);
                }
            }
        }