API Reference
Class
LazyRuleLoader
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}}}
- Factory that returns a sequence of rules.
Methods
public Task<List<Rule>> GetRulesAsync() #Returns:
Task<List<Rule>>Gets the rules, loading them if necessary.