Ocelot: Index was out of range. Must be non-negative and less than the size of the collection
ASP.NET Core+Consul+Ocleot 出错一、错误: Index was out of range.……1.1 Consul服务注入正常2.2 Ocelot报错: Index was out of range.……2.3 找出错误:原来是注入方式错误,更改注入方式三、Ocelot网关终于正常访问一、错误: Index was out of range.……1.1 Consul服务注入正常 public static void RegisterConsul()