AFAIK, c-ares should work on linux using the env flag, but for windows it 
still needs the PR you mentioned to get merged. Your best option would be 
to add a custom resolver in C++ which is then also available in C#. I run 
into the same problem and tried to solve it on a similar level, by adding a 
resolver for GRPCLB without the DNS layer. I also thought about doing it 
with Consul and adding a resolver, but found it easier to just implement 
the GRPCLB interface in C# since I then can have everything in one 
executable. Since the C# implementation is relying on the C core resolvers, 
I can now just use 
"grpclb://<ip_of_grpclb>:<port_of_grpclb>/<endpointname>".

I have made that public in this PR: https://github.com/grpc/grpc/pull/13639

I don't yet know if the team even likes to add that, but since c-ares is 
still lacking under windows and since there is no resolver support in C# 
directly, this seemed like the best option right now, since you can make a 
very low-level implementation of GRPCLB, just using it like a DNS server 
and later improve it or replace it with real load balancing strategies.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/60d83e1f-8f1f-4e4c-ad6e-a2a78a711692%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to