DocSpace-buildtools/common/ASC.Core.Common/Tenants/TenantAuditSettings.cs

28 lines
709 B
C#
Raw Normal View History

2022-02-15 11:52:43 +00:00
namespace ASC.Core.Tenants;
2019-08-15 12:04:42 +00:00
2022-02-15 11:52:43 +00:00
[Serializable]
public class TenantAuditSettings : ISettings
{
public const int MaxLifeTime = 180;
2019-09-13 11:18:27 +00:00
2022-02-15 11:52:43 +00:00
public int LoginHistoryLifeTime { get; set; }
public int AuditTrailLifeTime { get; set; }
2022-02-15 11:52:43 +00:00
public static readonly Guid Guid = new Guid("{8337D0FB-AD67-4552-8297-802312E7F503}");
public Guid ID => Guid;
2022-02-15 11:52:43 +00:00
public ISettings GetDefault(IServiceProvider serviceProvider)
{
2022-02-15 11:52:43 +00:00
return new TenantAuditSettings
{
LoginHistoryLifeTime = MaxLifeTime,
AuditTrailLifeTime = MaxLifeTime
};
}
}
public class TenantAuditSettingsWrapper
{
public TenantAuditSettings settings { get; set; }
}