Table of Contents

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

T

The type of input object used for value resolution.

Extension Methods

Properties

Name

The name of this context value.

string Name { get; }

Property Value

string

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

input T

The input object containing context data.

func Func<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

input T

The input object containing context data.

func Func<string, T, Task<object>>

Function to asynchronously resolve additional context values if needed.

Returns

Task<object>

A task containing the resolved value.