覆盖结构映射 IList 策略

Structuremap 有一个内置的 IList<> policy,它返回所有注册的类型。 有什么办法可以覆盖这种行为吗?

我想要的是:

container.Configure(
    config =>
    {
        config.For(typeof(IList<>)).Use(
            "Build list and check if there are no conflicting registrations",context =>
            {
                //// Do some checks and return the list if there are no conflicts
            });
    });
LiJ86 回答:覆盖结构映射 IList 策略

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/50003.html

大家都在问