Castle Windsor is used as IoC-container.
There is IPipeline
interface. It is implemented by base class: PipelineBase : IPipeline
. In turn it is inherited by two classes: FishPipeline : PipelineBase
and OctopusPipeline : PipelineBase
.
There is two customer classes, upper classes must be injected into:
First class LargeAquarium
needs both FishPipeline
and OctopusPipeline
. And second TinyAquarium
needs only FishPipeline
.
How can I solve it? Is there a need to add IFishPipeline
and IOctopusPipeline
interfaces?