Xabaril/AspNetCore.Diagnostics.HealthChecks

Redis Health Check

Open

Aperta il 30 mar 2021

Vedi su GitHub
 (3 commenti) (8 reazioni) (0 assegnatari)C# (3776 star) (737 fork)batch import
help wanted

Descrizione

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

Guida contributor