Update Safe Exam Browser Patch to 3.10.0.826

This commit is contained in:
2025-09-16 16:32:31 +02:00
parent 4827ae1afc
commit dd82d45ed8
320 changed files with 8445 additions and 5295 deletions

View File

@@ -24,12 +24,6 @@ namespace SafeExamBrowser.Core.OperationModel
protected Queue<T> operations = new Queue<T>();
protected Stack<T> stack = new Stack<T>();
public event ActionRequiredEventHandler ActionRequired
{
add { operations.ForEach(o => o.ActionRequired += value); }
remove { operations.ForEach(o => o.ActionRequired -= value); }
}
public event ProgressChangedEventHandler ProgressChanged;
public event StatusChangedEventHandler StatusChanged

View File

@@ -20,10 +20,9 @@ namespace SafeExamBrowser.Core.Operations
/// </summary>
public class CommunicationHostOperation : IRepeatableOperation
{
private ICommunicationHost host;
private ILogger logger;
private readonly ICommunicationHost host;
private readonly ILogger logger;
public event ActionRequiredEventHandler ActionRequired { add { } remove { } }
public event StatusChangedEventHandler StatusChanged;
public CommunicationHostOperation(ICommunicationHost host, ILogger logger)

View File

@@ -18,11 +18,10 @@ namespace SafeExamBrowser.Core.Operations
/// </summary>
public class DelegateOperation : IRepeatableOperation
{
private Action perform;
private Action repeat;
private Action revert;
private readonly Action perform;
private readonly Action repeat;
private readonly Action revert;
public event ActionRequiredEventHandler ActionRequired { add { } remove { } }
public event StatusChangedEventHandler StatusChanged { add { } remove { } }
public DelegateOperation(Action perform, Action repeat = null, Action revert = null)

View File

@@ -18,10 +18,9 @@ namespace SafeExamBrowser.Core.Operations
/// </summary>
public class I18nOperation : IOperation
{
private ILogger logger;
private IText text;
private readonly ILogger logger;
private readonly IText text;
public event ActionRequiredEventHandler ActionRequired { add { } remove { } }
public event StatusChangedEventHandler StatusChanged { add { } remove { } }
public I18nOperation(ILogger logger, IText text)

View File

@@ -19,34 +19,11 @@ namespace SafeExamBrowser.Core.Operations
/// </summary>
public class LazyInitializationOperation : IOperation
{
private Func<IOperation> initialize;
private readonly Func<IOperation> initialize;
private IOperation operation;
private event ActionRequiredEventHandler ActionRequiredImpl;
private event StatusChangedEventHandler StatusChangedImpl;
public event ActionRequiredEventHandler ActionRequired
{
add
{
ActionRequiredImpl += value;
if (operation != null)
{
operation.ActionRequired += value;
}
}
remove
{
ActionRequiredImpl -= value;
if (operation != null)
{
operation.ActionRequired -= value;
}
}
}
public event StatusChangedEventHandler StatusChanged
{
add
@@ -77,7 +54,6 @@ namespace SafeExamBrowser.Core.Operations
public OperationResult Perform()
{
operation = initialize.Invoke();
operation.ActionRequired += ActionRequiredImpl;
operation.StatusChanged += StatusChangedImpl;
return operation.Perform();