Restore SEBPatch
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
using SafeExamBrowser.Applications.Contracts;
|
||||
using SafeExamBrowser.Core.Contracts.OperationModel.Events;
|
||||
|
||||
namespace SafeExamBrowser.Client.Operations.Events
|
||||
{
|
||||
internal class ApplicationInitializationFailedEventArgs : ActionRequiredEventArgs
|
||||
{
|
||||
internal string DisplayName { get; }
|
||||
internal string ExecutableName { get; }
|
||||
internal FactoryResult Result { get; }
|
||||
|
||||
internal ApplicationInitializationFailedEventArgs(string displayName, string executableName, FactoryResult result)
|
||||
{
|
||||
DisplayName = displayName;
|
||||
ExecutableName = executableName;
|
||||
Result = result;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
using SafeExamBrowser.Core.Contracts.OperationModel.Events;
|
||||
|
||||
namespace SafeExamBrowser.Client.Operations.Events
|
||||
{
|
||||
internal class ApplicationNotFoundEventArgs : ActionRequiredEventArgs
|
||||
{
|
||||
internal string CustomPath { get; set; }
|
||||
internal string DisplayName { get; }
|
||||
internal string ExecutableName { get; }
|
||||
internal bool Success { get; set; }
|
||||
|
||||
internal ApplicationNotFoundEventArgs(string displayName, string executableName)
|
||||
{
|
||||
DisplayName = displayName;
|
||||
ExecutableName = executableName;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using SafeExamBrowser.Core.Contracts.OperationModel.Events;
|
||||
using SafeExamBrowser.Monitoring.Contracts.Applications;
|
||||
|
||||
namespace SafeExamBrowser.Client.Operations.Events
|
||||
{
|
||||
internal class ApplicationTerminationEventArgs : ActionRequiredEventArgs
|
||||
{
|
||||
internal IEnumerable<RunningApplication> RunningApplications { get; }
|
||||
internal bool TerminateProcesses { get; set; }
|
||||
|
||||
internal ApplicationTerminationEventArgs(IEnumerable<RunningApplication> runningApplications)
|
||||
{
|
||||
RunningApplications = runningApplications;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using SafeExamBrowser.Core.Contracts.OperationModel.Events;
|
||||
using SafeExamBrowser.Monitoring.Contracts.Applications;
|
||||
|
||||
namespace SafeExamBrowser.Client.Operations.Events
|
||||
{
|
||||
internal class ApplicationTerminationFailedEventArgs : ActionRequiredEventArgs
|
||||
{
|
||||
internal IEnumerable<RunningApplication> Applications { get; }
|
||||
|
||||
internal ApplicationTerminationFailedEventArgs(IEnumerable<RunningApplication> applications)
|
||||
{
|
||||
Applications = applications;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user