We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1920f5a commit 8856862Copy full SHA for 8856862
src/StackExchange.Redis/ConnectionMultiplexer.cs
@@ -2351,7 +2351,8 @@ internal void InitializeSentinel(LogProxy logProxy)
2351
public ConnectionMultiplexer GetSentinelMasterConnection(ConfigurationOptions config, TextWriter log = null)
2352
{
2353
if (ServerSelectionStrategy.ServerType != ServerType.Sentinel)
2354
- throw new NotImplementedException("The ConnectionMultiplexer is not a Sentinel connection.");
+ throw new RedisConnectionException(ConnectionFailureType.UnableToConnect,
2355
+ "Sentinel: The ConnectionMultiplexer is not a Sentinel connection.");
2356
2357
if (string.IsNullOrEmpty(config.ServiceName))
2358
throw new ArgumentException("A ServiceName must be specified.");
0 commit comments