Closed Crozin closed 7 years ago
This is incorrect usage. QueryOptions.Default
should not be used/modified. Make a new QueryOptions instance then set your custom DC, for example:
var options = new QueryOptions();
options.Datacenter = "myCustomDc";
var qr = await cc
.Health
.Service("myService", "myTag", true, options);
It seems that library ignores
QueryOptions
parameter:Results in query for
/v1/health/service/myService?tag=myTag&passing=1
instead of/v1/health/service/myService?tag=myTag&passing=1&dc=myCustomDc