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

能否支持Controller级动态代理? #6

Open
imgd opened this issue Apr 2, 2022 · 3 comments
Open

能否支持Controller级动态代理? #6

imgd opened this issue Apr 2, 2022 · 3 comments

Comments

@imgd
Copy link

imgd commented Apr 2, 2022

RT,
image
image

尝试:

services.AddControllers().AddControllersAsServices();

调试
发现controller已经加入了动态代理服务

public static IServiceCollection ToDynamicProxyService(this IServiceCollection services)      

image

但是很遗憾,个人能力有限, 不知道什么原因,无法触发aop

@imgd
Copy link
Author

imgd commented Apr 2, 2022

controller用filter到也能实现需求
image
就是体验不一样,filter性能也要好一些吧

@2881099
Copy link
Owner

2881099 commented Apr 4, 2022

建议研究其他主流动态代理

@imgd
Copy link
Author

imgd commented Apr 4, 2022 via email

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

2 participants