Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thygesteffensen opened this issue Jul 23, 2021 · 1 comment

Comments

@thygesteffensen
Copy link
Member

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?

@thygesteffensen
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant