Xabaril/AspNetCore.Diagnostics.HealthChecks

Redis Health Check

Open

#750 建立於 2021年3月30日

在 GitHub 查看
 (3 留言) (8 反應) (0 負責人)C# (3,776 star) (737 fork)batch import
help wanted

描述

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

貢獻者指南