More...
|
| | LazyWithContext (TContext context, Func< TContext, TValue > valueFactory) |
| | Synchronous Lazy constructor.
|
| | LazyWithContext (TContext context, Func< TContext, Task< TValue > > valueFactory) |
| | Asynchronous Lazy constructor.
|
|
| TValue | Value [get] |
| | The lazily-evaluated value.
|
◆ LazyWithContext() [1/2]
| PeanutButter.Utils.LazyWithContext< TContext, TValue >.LazyWithContext |
( |
TContext | context, |
|
|
Func< TContext, Task< TValue > > | valueFactory ) |
Asynchronous Lazy constructor.
- Parameters
-
| context | host provider (for this context) |
| valueFactory | method to run to get the value |
◆ LazyWithContext() [2/2]
| PeanutButter.Utils.LazyWithContext< TContext, TValue >.LazyWithContext |
( |
TContext | context, |
|
|
Func< TContext, TValue > | valueFactory ) |
Synchronous Lazy constructor.
- Parameters
-
| context | host provider (for this context) |
| valueFactory | method to run to get the value |
◆ Value
| TValue PeanutButter.Utils.LazyWithContext< TContext, TValue >.Value |
|
get |
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.Utils/LazyWithContext.cs