public static IRegisterSyntax UsingStrategy(this IEnumerable<Type> types, IRegistrationProducer registrationProducer) { return new StrategySelector(types).UsingStrategy(registrationProducer); }
public IRegisterSyntax UsingStrategy(IRegistrationProducer registrationProducer) { Check.NotNull(registrationProducer, nameof(registrationProducer)); var registrations = types.Select(type => registrationProducer.CreateRegistrationEntry(type)).Where(x => x != null).ToArray(); return new RegistrationPerformer(registrations); }