I tried to output the values of Controller.BackupInProgress and BackupManager.InProgress for an interval less than 100ms. When manually backuping a real controller, I found that the output got stuck (nothing is displayed). All the values displayed are FALSE.
private static async Task RunTest(CancellationToken token)
{
while (!token.IsCancellationRequested)
{
await Task.Delay(50, token);
try
{
Logger.AddMessage(new LogMessage($“{Controller.BackupInProgress}”));
}
catch (Exception ex)
{
//
}
}
}
If these two properties do not work, how to know if a controller is in backup progress or not?