marcoCasamento / Hangfire.Redis.StackExchange

HangFire Redis storage based on original (and now unsupported) Hangfire.Redis but using lovely StackExchange.Redis client
Other
448 stars 108 forks source link

Select the first available server in GetConnection #146

Closed marcoCasamento closed 4 months ago

marcoCasamento commented 4 months ago

select the first available server in GetConnection() and throw exception if no server is available

126

marcoCasamento commented 4 months ago

just add the excpetion throw to #144 thanks Lexy Zhitenev @Lexy2

Lexy2 commented 4 months ago

Sure thing, thanks, @marcoCasamento.

I agree that it's better to throw a RedisConnectionException than an InvalidOperationException from failing First(), but assumed stack trace would be self-explanatory.