Xabaril/AspNetCore.Diagnostics.HealthChecks

Redis Health Check

Open

#750 ouverte le 30 mars 2021

Voir sur GitHub
 (3 commentaires) (8 réactions) (0 assignés)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

Guide contributeur