public CustomHttpControllerSelector(HttpConfiguration config, IControllerNameGenerator controllerNameGenerator) : base(config) { _configuration = config; _controllerNameGenerator = controllerNameGenerator; _controllers = InitializeControllerDictionary(); }
public SitecoreServices(ITypeProvider typeProvider, IControllerNameGenerator controllerNameGenerator, IMetaDataBuilder metaDataBuilder, IServicesConfiguration servicesConfiguration) { if (typeProvider == null) { throw new ArgumentNullException("typeProvider"); } if (controllerNameGenerator == null) { throw new ArgumentNullException("controllerNameGenerator"); } if (metaDataBuilder == null) { throw new ArgumentNullException("metaDataBuilder"); } if (servicesConfiguration == null) { throw new ArgumentNullException("servicesConfiguration"); } _typeProvider = typeProvider; _controllerNameGenerator = controllerNameGenerator; _metaDataBuilder = metaDataBuilder; _servicesConfiguration = servicesConfiguration; }