public override async Task Init()

in client/Apache.ShenYu.Client/Registers/ShenyuNacosRegister.cs [56:79]


        public override async Task Init(ShenyuOptions shenyuOptions)
        {
            if (string.IsNullOrEmpty(shenyuOptions.Register.ServerList))
            {
                throw new System.ArgumentException("serverList can not be null.");
            }
            this._shenyuOptions = shenyuOptions;
            NacosSdkOptions options = new NacosSdkOptions();
            //props
            var props = shenyuOptions.Register.Props;
            options.ServerAddresses = this._shenyuOptions.Register.ServerList?.Split(',').ToList();//cluster split with ,                                                                                                
            props.TryGetValue(_nacosNameSpace, out string nacosNameSpace);
            options.Namespace = nacosNameSpace;
            options.UserName= props.GetValueOrDefault(Constants.RegisterConstants.UserName, "");
            options.Password= props.GetValueOrDefault(Constants.RegisterConstants.Password,"");
            options.AccessKey = props.GetValueOrDefault(Constants.RegisterConstants.AccessKey, "");
            options.SecretKey = props.GetValueOrDefault(Constants.RegisterConstants.SecretKey, "");
            var op = Microsoft.Extensions.Options.Options.Create(options);

            this._namingService = new NacosNamingService(this._loggerFactory, op, this._httpClientFactory);
            this._configService = new NacosConfigService(this._loggerFactory, op);

            await Task.CompletedTask;
        }