namespace EgwCoreLib.Lux.Data.Services.Config { public class EnvirParamService : BaseServ, IEnvirParamService { #region Public Constructors public EnvirParamService( IConfiguration config, IConnectionMultiplexer redis, IEnvirParamRepository repo) : base(config, redis) { _className = "EnvirParam"; _repo = repo; } #endregion Public Constructors #region Public Methods /// public async Task> GetAllAsync() { return await TraceAsync($"{_className}.GetAllAsync", async (activity) => { return await GetOrSetCacheAsync( $"{_redisBaseKey}:{_className}:ALL", async () => await _repo.GetAllAsync(), UltraLongCache ); }); } #endregion Public Methods #region Private Fields private readonly string _className; private readonly IEnvirParamRepository _repo; #endregion Private Fields } }