コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }