How to create a partial for a subclass?

Jan 24, 2013 at 12:37 PM

Hi!

I'm trying to implement the generated classes for my scenario and i would like to have partial classes for my Activities.

This because I would like to create activities from my pipeline component that allready have the connection to an eventstream thru IPipelineContext..GetEventStream()

How can I create partials when the static DirectESApi class is not partial?

Thanks for a great framework!

Developer
Jan 28, 2013 at 6:55 AM

Hi,

Glad to hear that you like the tool!  You are free to customize the generated code in any way you like.  First you should download the source code.  Inside you will find the XSLT file that drives the code generation (yes, an XSLT that generates C#).  Next you can copy it to your solution and customize it.  Then, pass the path to your version into the command-line.  The last parameter, [XSLTFile], allows a complete override of the built-in code generation.

Thanks,
Tom

Jan 28, 2013 at 10:14 AM

Damn that's cool!

Thanks!