Used to define the lifetime of a resolved resource.
An resource can be bound to a Scope, which allows the provided instance to be reused as long as the Scope is valid.
A Scope can be added to a Container, often a child container, to indicate that the Scope is valid whenever requesting
resources from that container.
Used to define the lifetime of a resolved resource. An resource can be bound to a Scope, which allows the provided instance to be reused as long as the Scope is valid.
A Scope can be added to a Container, often a child container, to indicate that the Scope is valid whenever requesting resources from that container.
See
The Scope() function for implementing Scope.