开发者

Scripting Engine for asp.net application

I want to allow my users to use a script language to further customize my application.

I´m looking for an embeddable script engine that is thread safe, because it´s a ASP.NET application. I Checked some engines, like Javascript.NET (https://github.com/JavascriptNet/Javascript.Net开发者_运维问答 ) but it is not Thread safe. Other implementations I found do not look stable enough.

Any sugestions ?

Thank you,

Fábio


Perhaps IronPython or IronRuby under the DLR is suitable?

You can mark up your extension points using MEF, and allow scripts to extend your application's functionality.

We've used it successfully in MahTweets (a WPF Application) - but I can't vouch for it's use under an ASP.NET situation.

Of course, thread safety is going to be your least concern if you're allowing random people to run arbitrary code within your application. They'll have full capabilities to completely bypass any security functionality you have, and alter/copy any user data. Caveat Emptor..


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜