Interface IContextValue<T>
- Namespace
- Albatross.Expression.Context
- Assembly
- Albatross.Expression.dll
Represents a context value that can be resolved during expression evaluation.
public interface IContextValue<T>
Type Parameters
TThe type of input object used for value resolution.
- Extension Methods
Properties
Name
The name of this context value.
string Name { get; }
Property Value
Methods
GetValue(T, Func<string, T, object>)
Retrieves the value using the provided input and context resolution function.
object GetValue(T input, Func<string, T, object> func)
Parameters
inputTThe input object containing context data.
funcFunc<string, T, object>Function to resolve additional context values if needed.
Returns
- object
The resolved value.
GetValueAsync(T, Func<string, T, Task<object>>)
Asynchronously retrieves the value using the provided input and context resolution function.
Task<object> GetValueAsync(T input, Func<string, T, Task<object>> func)
Parameters
inputTThe input object containing context data.
funcFunc<string, T, Task<object>>Function to asynchronously resolve additional context values if needed.