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
Post a Comment