blob: 1eeb848ed86d3781065482f00acf94d00c422566 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PPC.Common.Application;
using Tango.PPC.Common.BackupRestore;
namespace Tango.PPC.UI.BackupRestore
{
public class DefaultBackupManager : IBackupManager
{
public event EventHandler<BackupRestoreEventArgs> Progress;
public DefaultBackupManager(IPPCApplicationManager applicationManager)
{
}
public Task CreateBackup(string filePath, BackupSettings settings)
{
throw new NotImplementedException();
}
public Task Restore(string filePath)
{
throw new NotImplementedException();
}
protected virtual void OnProgress(BackupRestoreStage stage, double progress = 0, double maxProgress = 100, bool isIntermediate = true)
{
Progress?.Invoke(this, new BackupRestoreEventArgs()
{
Stage = stage,
Progress = progress,
MaxProgress = maxProgress,
IsIntermediate = isIntermediate,
});
}
}
}
|