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