From 08f9990c39f822f81cdd5b04e41379fc9242fada Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 11 Apr 2018 15:25:38 -0700 Subject: [PATCH] Ensure there's a redis connection earlier --- .../RedisHubLifetimeManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Microsoft.AspNetCore.SignalR.Redis/RedisHubLifetimeManager.cs b/src/Microsoft.AspNetCore.SignalR.Redis/RedisHubLifetimeManager.cs index 6c6375c4c0..807bdb55eb 100644 --- a/src/Microsoft.AspNetCore.SignalR.Redis/RedisHubLifetimeManager.cs +++ b/src/Microsoft.AspNetCore.SignalR.Redis/RedisHubLifetimeManager.cs @@ -47,6 +47,7 @@ namespace Microsoft.AspNetCore.SignalR.Redis _protocol = new RedisProtocol(hubProtocolResolver.AllProtocols); RedisLog.ConnectingToEndpoints(_logger, options.Value.Options.EndPoints, _serverName); + _ = EnsureRedisServerConnection(); } public override async Task OnConnectedAsync(HubConnectionContext connection)