Scripting engine in my .NET app

J

JLuis Estrada

Is there some class or engine in the .NET framework capable to manage (or
run) script code (like VB script) embedded in my app????

Thats because I have an APP that grows very fast, and one of the
requeriments its the abilyto to add new processing based in some numbers. (I
mean, if I get a 101, then I have to check some tables in a DB, If I get a
102z, then I need to check in some others tables and do some other
validation).
Due this requeriment, I was thinking in use some kind of script to do that.
Based on this, I only will need a folder and text files with the script
writted with in. And then, when I get the number, the app will load the file
and run the script.

Is this possible??
 
B

Balasubramanian Ramanathan

You can write your script in c# or vb.net and have it in your own
directory. load the file when it required and compile it at runtime and
execute it in .net itself. Dig CSharpCodeProvider class.
 
J

JLuis Estrada

your solutions sounds good, but I need to carry on a COM object, and you
should know more about it than me, its very awful to handle with it.

but tnx any way
 
J

JLuis Estrada

Sounds good, let me check it.


Balasubramanian Ramanathan said:
You can write your script in c# or vb.net and have it in your own
directory. load the file when it required and compile it at runtime and
execute it in .net itself. Dig CSharpCodeProvider class.
 
G

GhostInAK

Hello JLuis,

I would suggest a plugin based approach rather than a scripting approach.
Once you define a course of action for a particular number that action seems
like it would be fixed.. which is reflected in the nature of a plugin.. however
a script lends itsself to constant editing and tweaking.. even complete rewrites..
which doesnt really reflect a fixed course of action.

-Boo
 
J

JLuis Estrada

WOW

Its quite amazing all the stuff you can do with this.

Now Im working how to keep it in memory as a library.

when I make a workfull example, Ill post it!

Regards

JLuis!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top