我正在使用ServicePartitionResolver獲取羣集中另一個應用程序的http端點。服務結構ServicePartitionResolver ResolveAsync
var resolver = ServicePartitionResolver.GetDefault();
var partition = await resolver.ResolveAsync(serviceUri, partitionKey ?? ServicePartitionKey.Singleton, CancellationToken.None);
var endpoints = JObject.Parse(partition.GetEndpoint().Address)["Endpoints"];
return endpoints[endpointName].ToString().TrimEnd('/');
可正常工作,但是如果我重新部署我的目標應用和我的本地開發框其端口更改,源應用程序仍返回舊端點(也就是現在的無效)。有沒有可以清除的緩存?或者這是一個錯誤?