You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ExpressionRule.cs use metadata and service provider to resolve functions, instead of resolving every function. Prior, functions were cheap to create due to their simple logic, new functions may contain HTTP clients or DB clients, which are more expensive to create. To make it faster and lighter, we can instead use mete data classes to locate a function and resolve it. See AddPlugin
The text was updated successfully, but these errors were encountered:
thygesteffensen
changed the title
Replace List<IFunction> to List<FunctionMetaData> instead
Replace IEnumerable<IFunction> to IEnumerable<FunctionMetaData> instead
Aug 31, 2021
FunctionMetadata.cs have been added to make it easier to add function aliases and make the function part lighter.
Added FunctionMetadata.cs makes it possible to register a function on multiple aliases. Furthermore, only the FunctionMetadata class is retrieved as a list from DI, thus not building the function before it is actually needed, making room for more heavy dependencies, without making the entire engine slow.
Resolved#47, Resolved#58. Still need to clean up.
In
ExpressionRule.cs
use metadata and service provider to resolve functions, instead of resolving every function. Prior, functions were cheap to create due to their simple logic, new functions may contain HTTP clients or DB clients, which are more expensive to create. To make it faster and lighter, we can instead use mete data classes to locate a function and resolve it. See AddPluginThe text was updated successfully, but these errors were encountered: