1
在一个ASP.NET MVC 5应用程序,我有以下StructureMap配置:DecorateAllWith在Autofac和Asp.Net核心
cfg.For(typeof (IRequestHandler<,>)).DecorateAllWith(typeof (MediatorPipeline<,>));
http://structuremap.github.io/interception-and-decorators/
我现在使用ASP.NET核心...
Autofac中是否有等效的DecorateAllWith等效配置?
你能描述一下'DecorateAllWith'吗? –
你能在这里检查http://docs.autofac.org/en/latest/advanced/adapters-decorators.html –
嘿米格尔你会介意共享meditr的autofac设置吗? –