我想根据正在运行的令牌动态更改我的RestClient的baseUrl。
这是针对试图获取名册数据的副名册系统,但无法弄清楚如何为每个标记获取自定义baseUrl
public List<DeputyRosterData> RosterData(string url, int? actual, int? roster)
{
BaseUrl = "e1f5c520093734.au.deputy.com"; //Error on this line but to show you what I need
var request = Request("/api/v1/resource/Roster");
var result = _client.Execute<List<DeputyRosterData>>(request);
return result.Data;
}
答案 0 :(得分:2)
我认为,它对你有用
[construction, need, fire inspection, fire, resistant materials, peace, mind, the one]