Class FormulaFunctionsWithContext
The context supplied while executing formulas that also has a custom context item the formula can execute against with the correct type
Inheritance
FormulaFunctionsWithContext
Inherited Members
Namespace: LemonEdge.API.Core.Formulas
Assembly: LemonEdge.API.dll
Syntax
public class FormulaFunctionsWithContext : FormulaFunctionsWithContext<IBaseEntity>, IFormulaFunctionsWithContext<IBaseEntity>, IFormulaFunctionsWithContext, IFormulaFunctions
Constructors
FormulaFunctionsWithContext(IEntityRetriever, IReadOnlyCache, UserInfo, IBaseEntity, IFormulaFunctionsServiceContext)
Creates a new formula functions for helping with custom formulas as a context to operate against
Declaration
public FormulaFunctionsWithContext(IEntityRetriever retriever, IReadOnlyCache cache, UserInfo user, IBaseEntity item, IFormulaFunctionsServiceContext services)
Parameters
Type | Name | Description |
---|---|---|
IEntityRetriever | retriever | A context allowing formulas to load and query any data from LemonEdge |
IReadOnlyCache | cache | A local cache |
UserInfo | user | The current user executing the formula |
IBaseEntity | item | The custom item to be used against the formula |
IFormulaFunctionsServiceContext | services | The services demanded from the IServiceProvider for use in formulas |