in client/Apache.ShenYu.Client/Registers/ShenyuHttpRegister.cs [51:64]
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;
this._shenyuOptions.Register.Props.TryGetValue(Constants.RegisterConstants.UserName, out this._userName);
this._shenyuOptions.Register.Props.TryGetValue(Constants.RegisterConstants.Password, out this._password);
this.ServerList = this._shenyuOptions.Register.ServerList?.Split(',').ToList();
this.AccessTokens = new Dictionary<string, string>();
this._client = new HttpClient();
await this.SetAccessTokens();
}