private IEnumerable <IRuleDependency> CompileDependencies(IRuleDefinition ruleDefinition) { foreach (var dependency in ruleDefinition.DependencyGroup.Dependencies) { var compiledDependency = new RuleDependency(dependency.Declaration, dependency.ServiceType); yield return(compiledDependency); } }
private IEnumerable<IRuleDependency> CompileDependencies(IRuleDefinition ruleDefinition) { foreach (var dependency in ruleDefinition.DependencyGroup.Dependencies) { var compiledDependency = new RuleDependency(dependency.Declaration, dependency.ServiceType); yield return compiledDependency; } }