public ViewResolver(IManifest manifest, IVariantProvider variantProvider, IScoreEvaluator scoreEvaluator) { _manifest = manifest; _variantProvider = variantProvider; _scoreEvaluator = scoreEvaluator; ValidateManifest(); }
public static VariantSet GetVariantsNamed(this IVariantProvider This, IEnumerable <string> names) => This.AllVariantGroups .SelectMany(x => x.Variants) .Where(x => names.Contains(x.Name)) .ToVariantSet();
public static IVariant GetVariantNamed(this IVariantProvider This, string name) => This.AllVariantGroups .SelectMany(x => x.Variants) .FirstOrDefault(x => x.Name == name);