Xabaril/AspNetCore.Diagnostics.HealthChecks

Redis Health Check

Open

#750 opened on Mar 30, 2021

View on GitHub
 (3 comments) (8 reactions) (0 assignees)C# (3,776 stars) (737 forks)batch import
help wanted

Description

What would you like to be added:

I have already registered a singleton IConnectionMultiplexer to my IoC container and I would like my health check to use that instead.

// Func<IServiceProvider, IConnectionMultiplexer>
.AddRedis(sp => sp.GetRequiredService<IConnectionMultiplexer>())

Why is this needed:

To use the same connection as the application

Contributor guide