It would be very nice to have an extension method for the IHostBuilder that injects IGrainFactory or IClusterClient without hosting the silo. Currently we have to make sure all the network connection plumbing works and inject the client on our own. Something like .UseOrleansClient() would let us configure the ClientBuilder but take away the responsibility of maintaining a connection / reconnecting.
What are your thoughts?
Good idea
I agree, I think this would be beneficial. There are other projects out there which do add support for this today, for example: https://github.com/OrleansContrib/Orleans.MultiClient
I am still willing to have something built in, and I think it would be a good contribution. One requirement: UseOrleans and UseOrleansClient are mutually exclusive (can't have both on the same IServiceCollection or IHostBuilder), so the support must detect that and throw as soon as possible if the user makes that mistake.
@ReubenBond I will allow myself to submit a PR spike, but please expect that I may need guidance.
Most helpful comment
@ReubenBond I will allow myself to submit a PR spike, but please expect that I may need guidance.