Ensure there's a redis connection earlier
This commit is contained in:
parent
b8c3273cae
commit
08f9990c39
|
|
@ -47,6 +47,7 @@ namespace Microsoft.AspNetCore.SignalR.Redis
|
||||||
_protocol = new RedisProtocol(hubProtocolResolver.AllProtocols);
|
_protocol = new RedisProtocol(hubProtocolResolver.AllProtocols);
|
||||||
|
|
||||||
RedisLog.ConnectingToEndpoints(_logger, options.Value.Options.EndPoints, _serverName);
|
RedisLog.ConnectingToEndpoints(_logger, options.Value.Options.EndPoints, _serverName);
|
||||||
|
_ = EnsureRedisServerConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task OnConnectedAsync(HubConnectionContext connection)
|
public override async Task OnConnectedAsync(HubConnectionContext connection)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue