Interface ILazy<TInterfce>
Lazily resolves a dependency
Namespace: Solti.Utils.DI.Interfaces
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public interface ILazy<TInterfce>
Type Parameters
Name | Description |
---|---|
TInterfce | The service interface |
Remarks
Prefer this way for lazy resolution over System.
Properties
IsValueCreated
Returns true if the Value already assigned, false otherwise.
Declaration
bool IsValueCreated { get; }
Property Value
Type | Description |
---|---|
System. |
Value
The value associated to this instance. Created only once on the first request.
Declaration
TInterfce Value { get; }
Property Value
Type | Description |
---|---|
TInterfce |