Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
songfukai opened this issue Nov 23, 2019 · 0 comments
Open

Comments

@songfukai
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant