Open a34546 opened 5 months ago
服务注册时,如果不填写ServiceName时会报错,我希望如果只填写serverId,没有填写serverName时,默认将AppId作为默认值。 我现在使用场景就是全部填写的appId,但是感觉和上面的AppId重复,想省略掉, 想在注册UseAgileConfig前自动赋值,但是还是不生效 builder.Configuration["AgileConfig:serviceRegister:serviceName"]=builder.Configuration["AgileConfig:appId"] 但是还是会报错。有什么好的办法解决吗
或者取消必填也可以
不错的建议。这两天我会进行优化。
服务注册时,如果不填写ServiceName时会报错,我希望如果只填写serverId,没有填写serverName时,默认将AppId作为默认值。 我现在使用场景就是全部填写的appId,但是感觉和上面的AppId重复,想省略掉, 想在注册UseAgileConfig前自动赋值,但是还是不生效 builder.Configuration["AgileConfig:serviceRegister:serviceName"]=builder.Configuration["AgileConfig:appId"] 但是还是会报错。有什么好的办法解决吗