Click or drag to resize
DelayedSeriesFromValueLoaderK, V Method (K, K, FuncK, BoundaryBehavior, K, BoundaryBehavior, TaskIEnumerableKeyValuePairK, V)
A C#-friendly function that creates lazily loaded series. The method requires the overall range of the series (smallest and greatest key) and a function that loads the data. In this overload, the function is a `Func` delegate taking information about the requested range and returning `Task<T>` that produces the data. ## Parameters - `min` - The smallest key that should be present in the created series. - `min` - The greatests key that should be present in the created series. - `loader` - A delegate which returns a task that loads the data in a specified range. The delegate is called with four arguments specifying the minimal and maximal key and two `BoundaryBehavior` values specifying whether the low and high ranges are inclusive or exclusive. ## Remarks For more information see the [lazy data loading tutorial](../lazysource.html). The operation calls `loader` (and so creates the tasks) on the thread that is requesting the result.

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K, V> FromValueLoader<K, V>(
	K min,
	K max,
	Func<K, BoundaryBehavior, K, BoundaryBehavior, Task<IEnumerable<KeyValuePair<K, V>>>> loader
)

Parameters

min
Type: K

[Missing <param name="min"/> documentation for "M:Deedle.DelayedSeries.FromValueLoader``2(``0,``0,System.Func{``0,Deedle.Indices.BoundaryBehavior,``0,Deedle.Indices.BoundaryBehavior,System.Threading.Tasks.Task{System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{``0,``1}}}})"]

max
Type: K

[Missing <param name="max"/> documentation for "M:Deedle.DelayedSeries.FromValueLoader``2(``0,``0,System.Func{``0,Deedle.Indices.BoundaryBehavior,``0,Deedle.Indices.BoundaryBehavior,System.Threading.Tasks.Task{System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{``0,``1}}}})"]

loader
Type: SystemFuncK, BoundaryBehavior, K, BoundaryBehavior, TaskIEnumerableKeyValuePairK, V

[Missing <param name="loader"/> documentation for "M:Deedle.DelayedSeries.FromValueLoader``2(``0,``0,System.Func{``0,Deedle.Indices.BoundaryBehavior,``0,Deedle.Indices.BoundaryBehavior,System.Threading.Tasks.Task{System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{``0,``1}}}})"]

Type Parameters

K
V

Return Value

Type: SeriesK, V

[Missing <returns> documentation for "M:Deedle.DelayedSeries.FromValueLoader``2(``0,``0,System.Func{``0,Deedle.Indices.BoundaryBehavior,``0,Deedle.Indices.BoundaryBehavior,System.Threading.Tasks.Task{System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{``0,``1}}}})"]

See Also