次の方法で共有


Microsoft.Extensions.DependencyInjection.Extensions Namespace

Classes

ServiceCollectionDescriptorExtensions

Extension methods for adding and removing services to an IServiceCollection.