RuPeng.HystrixCore icon indicating copy to clipboard operation
RuPeng.HystrixCore copied to clipboard

依赖注入获取对象不是AspectCore动态生成的子类类型

Open songfukai opened this issue 5 years ago • 0 comments

老师您好,.net core 3.0的webapi下测试RuPeng.HystrixCore获取依赖注入的对象: 没有依赖注入的时候,可以获得Person对象是AspectCore生成的Person的动态子类对象类型: image p的类型:AspectCore.DynamicGenerated.Person 依赖注入后,获取到的Person对象不是AspectCore生成的Person的动态子类对象类型: image p的类型:hystrixTest1.Person Person中的方法报异常的时候,降级没出发。 谢谢老师了。

songfukai avatar Nov 23 '19 04:11 songfukai