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

net core使用supersocket,注入的参数没办法resloved #692

Open
Wx19880221 opened this issue Jan 10, 2024 · 7 comments
Open

net core使用supersocket,注入的参数没办法resloved #692

Wx19880221 opened this issue Jan 10, 2024 · 7 comments

Comments

@Wx19880221
Copy link

你好:
使用supersocker,自定义command。注入了一个类,但是没办法resloved。这个注入的类,在controller层可以正确的获取到。
1704873010984
在controller层可以正确获取到,如下图
1704873067150
奇怪的问题是,之前是可以成功reslove。后面突然就不行了

@kerryjiang
Copy link
Owner

你是如何注册这个服务的?

@Wx19880221
Copy link
Author

使用的Netcore自带的注入工具

@kerryjiang
Copy link
Owner

要注册到SuperSocket使用的容器里面去

@loveyeguo
Copy link

请问如何注入到SuperSocket使用的容器里面?

@loveyeguo
Copy link

@kerryjiang

@loveyeguo
Copy link

或者说,能不能用autofac来注册supersocket?

@kerryjiang
Copy link
Owner

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

3 participants