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-14 21:02:57 +00:00
|
|
|
|
2022-02-15 11:52:43 +00:00
|
|
|
public static readonly Guid Guid = new Guid("{8337D0FB-AD67-4552-8297-802312E7F503}");
|
|
|
|
public Guid ID => Guid;
|
2020-10-21 09:55:13 +00:00
|
|
|
|
2022-02-15 11:52:43 +00:00
|
|
|
public ISettings GetDefault(IServiceProvider serviceProvider)
|
2020-10-21 09:55:13 +00:00
|
|
|
{
|
2022-02-15 11:52:43 +00:00
|
|
|
return new TenantAuditSettings
|
|
|
|
{
|
|
|
|
LoginHistoryLifeTime = MaxLifeTime,
|
|
|
|
AuditTrailLifeTime = MaxLifeTime
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class TenantAuditSettingsWrapper
|
|
|
|
{
|
|
|
|
public TenantAuditSettings settings { get; set; }
|
|
|
|
}
|