ServiceLifetime enum
Represents a lifetime of the service.
Constructors
- ServiceLifetime()
-
const
Values
- singleton → const ServiceLifetime
-
The service is created once and used accross all scopes.
- scoped → const ServiceLifetime
-
The service is created once for each scope.
- transient → const ServiceLifetime
-
The service is created for each service resolution.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ServiceLifetime> - A constant List of the values in this enum, in order of their declaration.