inversion of control - Castle Windsor - Get all classes derived from base class -


sorry, new castle.windsor, may noob question.

i have following structure:

public class device { ... } public class sensor : device { ... } public class actuator : device { ... } 

i want query castle.windsor components inherit device...

how can achieve this?

thanks!

try this:

container.register(classes     .fromassemblycontaining<device>()        .basedon<device>()     .withservicebase()     .lifestyletransient()); 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -