Adds the specified service to the service container, and optionally promotes the service to parent service containers.
将指定服务添加到服务容器中,并可选择将该服务提升到父服务容器。
Removes the specified service type from the service container, and optionally promotes the service to parent service containers.
将指定的服务型别从服务容器移除,并且选择性地将服务升级到父服务容器。
Service containers act as a repository for services and implement IServiceContainer, thus providing a means of adding and removing services.
服务容器充当服务的储存库并实现IServiceContainer,从而提供了一种添加和移除服务的手段。
应用推荐