delegateas/ExpressionEngine

Adding common functions which are not a part of Power Automate, such as pow() or sqrt()

thygesteffensen opened this issue · 1 comments

The format and basic function offering are based heavily on Power Automate and I think we should keep it that way.

However, to the purpose of this project is to have functionality used by PowerAutomateMockUp and to make it easier for others to use the same expressions in their projects, why it is a standalone project.

To not break the Power Automate version and to still offer simple functions to other users, we could add an extension NuGet, where some extra functions could be added to the Dependency Injection, such as pow() or sqrt(). This could be done by:

// ...
services.AddExpressionEngine();
services.AddExpressionEngineExtensions();3
// ...

Then AddExpressionEngineExtensions could be located in Delegate.ExpressionEngine.Extensions namespace.

@pksorensen what do you think?

One NuGet package and one extension method, then add an option to not add additional functions.