mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-05-02 19:12:51 +08:00
35 lines
934 B
C#
35 lines
934 B
C#
using NetAdmin.Cache;
|
|
using NetAdmin.Domain.Dto.Sys.Tool;
|
|
using NetAdmin.SysComponent.Application.Services.Sys.Dependency;
|
|
using NetAdmin.SysComponent.Cache.Sys.Dependency;
|
|
|
|
namespace NetAdmin.SysComponent.Cache.Sys;
|
|
|
|
/// <inheritdoc cref="IToolsCache" />
|
|
public sealed class ToolsCache(IDistributedCache cache, IToolsService service) //
|
|
: DistributedCache<IToolsService>(cache, service), IScoped, IToolsCache
|
|
{
|
|
/// <inheritdoc />
|
|
public Task<string> GetChangeLogAsync()
|
|
{
|
|
return Service.GetChangeLogAsync();
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public Task<IEnumerable<GetModulesRsp>> GetModulesAsync()
|
|
{
|
|
return Service.GetModulesAsync();
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public Task<DateTime> GetServerUtcTimeAsync()
|
|
{
|
|
return Service.GetServerUtcTimeAsync();
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public Task<string> GetVersionAsync()
|
|
{
|
|
return Service.GetVersionAsync();
|
|
}
|
|
} |