2018-03-21 10:23:15 +01:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2018-03-21 10:23:15 +01:00
|
|
|
|
*
|
|
|
|
|
* 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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
using SafeExamBrowser.Communication.Contracts.Hosts;
|
|
|
|
|
using SafeExamBrowser.Communication.Contracts.Proxies;
|
|
|
|
|
using SafeExamBrowser.Core.Contracts.OperationModel;
|
|
|
|
|
using SafeExamBrowser.Logging.Contracts;
|
|
|
|
|
using SafeExamBrowser.WindowsApi.Contracts;
|
2018-03-21 10:23:15 +01:00
|
|
|
|
|
2018-08-31 10:06:27 +02:00
|
|
|
|
namespace SafeExamBrowser.Runtime.Operations
|
2018-03-21 10:23:15 +01:00
|
|
|
|
{
|
2018-10-12 11:16:59 +02:00
|
|
|
|
internal class ClientTerminationOperation : ClientOperation
|
2018-03-21 10:23:15 +01:00
|
|
|
|
{
|
|
|
|
|
public ClientTerminationOperation(
|
|
|
|
|
ILogger logger,
|
|
|
|
|
IProcessFactory processFactory,
|
|
|
|
|
IProxyFactory proxyFactory,
|
2018-03-21 15:28:59 +01:00
|
|
|
|
IRuntimeHost runtimeHost,
|
2018-10-12 11:16:59 +02:00
|
|
|
|
SessionContext sessionContext,
|
2019-03-29 16:02:05 +01:00
|
|
|
|
int timeout_ms) : base(logger, processFactory, proxyFactory, runtimeHost, sessionContext, timeout_ms)
|
2018-03-21 10:23:15 +01:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override OperationResult Perform()
|
|
|
|
|
{
|
|
|
|
|
return OperationResult.Success;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override OperationResult Repeat()
|
|
|
|
|
{
|
2018-10-10 09:19:03 +02:00
|
|
|
|
return base.Revert();
|
2018-03-21 10:23:15 +01:00
|
|
|
|
}
|
|
|
|
|
|
2018-10-10 09:19:03 +02:00
|
|
|
|
public override OperationResult Revert()
|
2018-03-21 10:23:15 +01:00
|
|
|
|
{
|
2018-10-10 09:19:03 +02:00
|
|
|
|
return OperationResult.Success;
|
2018-03-21 10:23:15 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|