Update Safe Exam Browser Patch to 3.10.0.826
This commit is contained in:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user