共用方式為


Microsoft.Extensions.DependencyInjection.Extensions Namespace

Classes

ServiceCollectionDescriptorExtensions

Extension methods for adding and removing services to an IServiceCollection.