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

服务注册中的ServiceName可以自动默认为appId吗 #176

Open
a34546 opened this issue May 6, 2024 · 2 comments
Open

服务注册中的ServiceName可以自动默认为appId吗 #176

a34546 opened this issue May 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@a34546
Copy link

a34546 commented May 6, 2024

服务注册时,如果不填写ServiceName时会报错,我希望如果只填写serverId,没有填写serverName时,默认将AppId作为默认值。
我现在使用场景就是全部填写的appId,但是感觉和上面的AppId重复,想省略掉,
想在注册UseAgileConfig前自动赋值,但是还是不生效
builder.Configuration["AgileConfig:serviceRegister:serviceName"]=builder.Configuration["AgileConfig:appId"]
但是还是会报错。有什么好的办法解决吗

@a34546
Copy link
Author

a34546 commented May 6, 2024

或者取消必填也可以

@kklldog
Copy link
Collaborator

kklldog commented May 6, 2024

不错的建议。这两天我会进行优化。

@kklldog kklldog added the enhancement New feature or request label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants