私はStructureMapで依存関係を設定しており、それを2回デコレートしたいと思います。私は以下のようにEnrichWith
メソッドを使用しましたが、2番目のデコレータのみが実行されます(ResultistAdvertisementInjector
)。私がそれらを切り替えると、他のデコレータだけが実行されます。StructureMapで依存関係を2回デコレートする方法
For<IResultListViewModelMapper<ZoekObject>>().Use<ResultListViewModelMapper<ZoekObject>>()
.EnrichWith(original => new ResultListDateSeparatorInjector<ZoekObject>(original))
.EnrichWith(original => new ResultistAdvertisementInjector<ZoekObject>(original));
2つのデコレータを使用して依存関係を充実させるにはどうすればよいですか?私の頭の上オフ