Script for asp.net application

I want my users to use the script language to further customize my application.
I am looking for an embeddable script engine that is thread safe because it is an ASP.NET application. I tested some engines like Javascript.NET ( https://github.com/JavascriptNet/Javascript.Net ), but it is not thread safe. Other implementations that I have found look not stable enough.

Any sugestions?

Thanks,

Fabiu

+6
source share
2 answers

Perhaps IronPython or IronRuby fits DLR?

You can mark your extension points with MEF and let scripts extend the functionality of your application.

We have successfully used it in MahTweets (a WPF application), but I cannot vouch for its use in ASP.NET.

Of course, thread safety will be your least concern if you allow random people to run arbitrary code in your application. They will have full capabilities to completely bypass any security features that you have, and modify / copy any user data. Caveat Emptor ..

+3
source share

You can also use Lua with something like LuaInterface (http://code.google.com/p/luainterface/). Depending on the level of abstraction and / or freedom for the user writing the script, you may have to reorganize a lot of code if you want to introduce a scripting mechanism.

+2
source share

All Articles