Skip to content

ServiceScope

Defines a disposable service scope.

The aexit method ends the scope lifetime. Once called, any scoped services that have been resolved from ServiceProvider will be disposed.

service_provider: BaseServiceProvider abstractmethod property

Gets the :class:BaseServiceProvider used to resolve dependencies from the scope.