
调用consul的api接口就行了
put请求:
http://consul服务地址/v1/agent/service/deregister/<serviceid>
serviceid可以在consul提供的地址看
使用.net的话可以使用HttpClient请求即可
- string reuslt = httpClient.PutAsync("http://consul服务地址/v1/agent/service/deregister/3319478a............", null).Result.Content.ReadAsStringAsync().Result;
评价
排名
12
文章
74
粉丝
4
评论
15
ASP.NET中webform中的几个生命周期函数
修心 : 什么周期除了这些还有什么呢
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术