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.Lazy`1

Properties

IsValueCreated

Returns true if the Value already assigned, false otherwise.

Declaration
bool IsValueCreated { get; }
Property Value
Type Description
System.Boolean

Value

The value associated to this instance. Created only once on the first request.

Declaration
TInterfce Value { get; }
Property Value
Type Description
TInterfce
In This Article
Back to top Generated by DocFX