Ensure there's a redis connection earlier

This commit is contained in:
David Fowler 2018-04-11 15:25:38 -07:00 committed by GitHub
parent b8c3273cae
commit 08f9990c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)