2022-03-02 15:25:28 +00:00
|
|
|
|
namespace ASC.Data.Backup.Core.IntegrationEvents.Events;
|
2022-02-14 11:18:58 +00:00
|
|
|
|
|
|
|
|
|
public record BackupRequestIntegrationEvent : IntegrationEvent
|
|
|
|
|
{
|
|
|
|
|
public BackupRequestIntegrationEvent(BackupStorageType storageType,
|
|
|
|
|
int tenantId,
|
|
|
|
|
Guid createBy,
|
|
|
|
|
Dictionary<string, string> storageParams,
|
2022-02-24 16:53:49 +00:00
|
|
|
|
bool backupMail,
|
|
|
|
|
bool isScheduled = false,
|
|
|
|
|
int backupsStored = 0,
|
|
|
|
|
string storageBasePath = "") : base(createBy, tenantId)
|
2022-02-14 11:18:58 +00:00
|
|
|
|
{
|
|
|
|
|
StorageType = storageType;
|
|
|
|
|
StorageParams = storageParams;
|
|
|
|
|
BackupMail = backupMail;
|
2022-02-24 16:53:49 +00:00
|
|
|
|
IsScheduled = isScheduled;
|
|
|
|
|
BackupsStored = backupsStored;
|
|
|
|
|
StorageBasePath = storageBasePath;
|
2022-02-14 11:18:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BackupStorageType StorageType { get; private init; }
|
|
|
|
|
public Dictionary<string, string> StorageParams { get; private init; }
|
|
|
|
|
public bool BackupMail { get; private init; }
|
2022-02-24 16:53:49 +00:00
|
|
|
|
public bool IsScheduled { get; private init; }
|
|
|
|
|
public int BackupsStored { get; private init; }
|
|
|
|
|
public string StorageBasePath { get; private init; }
|
2022-02-14 11:18:58 +00:00
|
|
|
|
}
|
2022-02-24 16:53:49 +00:00
|
|
|
|
|