Esempio n. 1
0
 public BackupAjaxHandler(
     BackupService backupService,
     TenantManager tenantManager,
     MessageService messageService,
     CoreBaseSettings coreBaseSettings,
     CoreConfiguration coreConfiguration,
     PermissionContext permissionContext,
     SecurityContext securityContext,
     UserManager userManager,
     TenantExtra tenantExtra,
     BackupHelper backupHelper,
     ConsumerFactory consumerFactory)
 {
     TenantManager     = tenantManager;
     MessageService    = messageService;
     CoreBaseSettings  = coreBaseSettings;
     CoreConfiguration = coreConfiguration;
     PermissionContext = permissionContext;
     SecurityContext   = securityContext;
     UserManager       = userManager;
     TenantExtra       = tenantExtra;
     BackupHelper      = backupHelper;
     ConsumerFactory   = consumerFactory;
     BackupService     = backupService;
 }
Esempio n. 2
0
 public Schedule(IOptionsMonitor <ILog> options, TenantManager tenantManager, TenantUtil tenantUtil, BackupHelper backupHelper)
 {
     Options       = options;
     TenantManager = tenantManager;
     TenantUtil    = tenantUtil;
     BackupHelper  = backupHelper;
 }
Esempio n. 3
0
 private void DemandSize()
 {
     if (BackupHelper.ExceedsMaxAvailableSize(TenantManager.GetCurrentTenant().TenantId))
     {
         throw new InvalidOperationException(string.Format(UserControlsCommonResource.BackupSpaceExceed,
                                                           FileSizeComment.FilesSizeToString(BackupHelper.AvailableZipSize),
                                                           "",
                                                           ""));
     }
 }