Merge branch 'master' into feature/files
This commit is contained in:
commit
2d711a9f85
@ -156,7 +156,9 @@ namespace ASC.Data.Backup
|
|||||||
public static DIHelper AddNotifyHelperService(this DIHelper services)
|
public static DIHelper AddNotifyHelperService(this DIHelper services)
|
||||||
{
|
{
|
||||||
services.TryAddSingleton<NotifyHelper>();
|
services.TryAddSingleton<NotifyHelper>();
|
||||||
|
|
||||||
return services
|
return services
|
||||||
|
.AddStudioNotifySourceService()
|
||||||
.AddUserManagerService()
|
.AddUserManagerService()
|
||||||
.AddStudioNotifyHelperService()
|
.AddStudioNotifyHelperService()
|
||||||
.AddDisplayUserSettingsService();
|
.AddDisplayUserSettingsService();
|
||||||
|
@ -429,6 +429,7 @@ namespace ASC.Data.Backup.Service
|
|||||||
}
|
}
|
||||||
|
|
||||||
IsCompleted = true;
|
IsCompleted = true;
|
||||||
|
backupWorker.PublishProgress(this);
|
||||||
}
|
}
|
||||||
catch (Exception error)
|
catch (Exception error)
|
||||||
{
|
{
|
||||||
@ -438,6 +439,15 @@ namespace ASC.Data.Backup.Service
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
backupWorker.PublishProgress(this);
|
||||||
|
}
|
||||||
|
catch (Exception error)
|
||||||
|
{
|
||||||
|
Log.Error("publish", error);
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!(storagePath == tempFile && StorageType == BackupStorageType.Local))
|
if (!(storagePath == tempFile && StorageType == BackupStorageType.Local))
|
||||||
@ -563,9 +573,12 @@ namespace ASC.Data.Backup.Service
|
|||||||
|
|
||||||
Percentage = 75;
|
Percentage = 75;
|
||||||
|
|
||||||
|
backupWorker.PublishProgress(this);
|
||||||
|
|
||||||
File.Delete(tempFile);
|
File.Delete(tempFile);
|
||||||
|
|
||||||
Percentage = 100;
|
Percentage = 100;
|
||||||
|
backupWorker.PublishProgress(this);
|
||||||
}
|
}
|
||||||
catch (Exception error)
|
catch (Exception error)
|
||||||
{
|
{
|
||||||
@ -580,6 +593,15 @@ namespace ASC.Data.Backup.Service
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
backupWorker.PublishProgress(this);
|
||||||
|
}
|
||||||
|
catch (Exception error)
|
||||||
|
{
|
||||||
|
Log.Error("publish", error);
|
||||||
|
}
|
||||||
|
|
||||||
if (File.Exists(tempFile))
|
if (File.Exists(tempFile))
|
||||||
{
|
{
|
||||||
File.Delete(tempFile);
|
File.Delete(tempFile);
|
||||||
@ -671,6 +693,7 @@ namespace ASC.Data.Backup.Service
|
|||||||
|
|
||||||
Link = GetLink(alias, false);
|
Link = GetLink(alias, false);
|
||||||
notifyHelper.SendAboutTransferComplete(tenant, TargetRegion, Link, !Notify);
|
notifyHelper.SendAboutTransferComplete(tenant, TargetRegion, Link, !Notify);
|
||||||
|
backupWorker.PublishProgress(this);
|
||||||
}
|
}
|
||||||
catch (Exception error)
|
catch (Exception error)
|
||||||
{
|
{
|
||||||
@ -682,6 +705,15 @@ namespace ASC.Data.Backup.Service
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
backupWorker.PublishProgress(this);
|
||||||
|
}
|
||||||
|
catch (Exception error)
|
||||||
|
{
|
||||||
|
Log.Error("publish", error);
|
||||||
|
}
|
||||||
|
|
||||||
if (File.Exists(tempFile))
|
if (File.Exists(tempFile))
|
||||||
{
|
{
|
||||||
File.Delete(tempFile);
|
File.Delete(tempFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user