[IronPython] script c# application
dinov at microsoft.com
Mon Jul 12 11:03:10 PDT 2010
> I have a c# application, and I need to make it scriptable for testing
> purposes. So, what I would like to do is:
> 1) run my program
> 2) pop up a window where I could interactively execute IronPython
> commands, to manipulate the c# classes in my application
> 3)be able to load an IronPython script from file, which would be able
> to manipulate the c# classes in my app.
> Number 3 is the most important for me; I want to stress test my wcf
> services by hammering away at them in a loop.
> Any insight or help, or sample code would be greatly appreciated.
I'd check out the BadPaint sample here:
It goes along with this presentation:
This just goes over how to take a really simple app and add scripting
to it. There's nothing about reading from a file but that's easy enough
to do - it does have a window to input text in and execute it immediately.
You can also check out the DLR hosting spec over here:
which will give you the details on how to use the hosting APIs.
More information about the Users