Exemple #1
0
        public IServiceCollection AddServices(ExtensionServiceConfiguration serviceConfiguration)
        {
            if (serviceConfiguration is null)
            {
                throw new System.ArgumentNullException(nameof(serviceConfiguration));
            }

            AddUpgradeSteps(serviceConfiguration.ServiceCollection, serviceConfiguration.ExtensionConfiguration);
            AddConfigUpdaters(serviceConfiguration.ServiceCollection);
            AddAnalyzersAndCodeFixProviders(serviceConfiguration.ServiceCollection);
            AddPackageReferenceAnalyzers(serviceConfiguration.ServiceCollection);

            return(serviceConfiguration.ServiceCollection);
        }