Skip to content

ServiceScopeFactory

Bases: ABC

Create instances of :class:ServiceScope, which is used to create services within a scope.

create_scope abstractmethod

create_scope() -> ServiceScope

Create a :class:ServiceScope that contains a :class:ServiceProvider used to resolve dependencies from a newly created scope.