[IronPython] script c# application
Dino Viehland
dinov at microsoft.com
Mon Jul 12 11:03:10 PDT 2010
Aaron wrote:
> Hello!
>
> 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:
http://ironpython.codeplex.com/releases/view/36280
It goes along with this presentation:
http://www.microsoftpdc.com/2009/FT30
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:
http://dlr.codeplex.com/wikipage?title=Docs%20and%20specs&referringTitle=Documentation
which will give you the details on how to use the hosting APIs.
More information about the Users
mailing list