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

DiscoveryService由于没有加入到RegisterHostedService注入中,导致如果其他如controller不注入IDiscoveryService时,其不会初始化,DiscoveryService.Instance也始终为空 #50

Open
yangbocheng opened this issue Dec 2, 2024 · 1 comment

Comments

@yangbocheng
Copy link

实际上,当需要RegisterHostedService时,必然IDiscoveryService服务也是需要的。避免下DiscoveryService.Instance null的问题

image
image

@kklldog
Copy link
Owner

kklldog commented Dec 16, 2024

好像有一点道理。不过不太推荐直接用 Instance 对象。

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