private void ConfigureLearningStandards() { var config = new EdFiOdsApiClientConfiguration(); var serviceCollection = new ServiceCollection(); var pluginConnector = new LearningStandardsCorePluginConnector( serviceCollection, ServiceProviderFunc, new LearningStandardLogProvider(), config ); Container.Register(Component.For <ILearningStandardsCorePluginConnector>().Instance(pluginConnector)); }
public static void ConfigureLearningStandards(IServiceCollection services) { var config = new EdFiOdsApiClientConfiguration( maxSimultaneousRequests: GetLearningStandardsMaxSimultaneousRequests()); var serviceCollection = new ServiceCollection(); var pluginConnector = new LearningStandardsCorePluginConnector( serviceCollection, ServiceProviderFunc, new LearningStandardLogProvider(), config ); services.AddSingleton <ILearningStandardsCorePluginConnector>(pluginConnector); }