TestimoX

API Reference

Class

LazyRuleLoader

Namespace TestimoX.Rules
Assembly TestimoX

Lazily loads rules using the provided asynchronous loader when first requested.

Inheritance

  • Object
  • LazyRuleLoader

Constructors

public LazyRuleLoader(Func<Task<IEnumerable<Rule>>> loader) #

Creates a lazy loader that invokes the provided asynchronous factory on first use.

Parameters

loader System.Func{System.Threading.Tasks.Task{System.Collections.Generic.IEnumerable{TestimoX.Definitions.Rule}}} requiredposition: 0
Factory that returns a sequence of rules.

Methods

public Task<List<Rule>> GetRulesAsync() #
Returns: Task<List<Rule>>

Gets the rules, loading them if necessary.