2018-02-28 15:49:06 +01:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
|
|
|
|
*
|
|
|
|
|
* 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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-08-31 10:06:27 +02:00
|
|
|
|
namespace SafeExamBrowser.Contracts.Core.OperationModel
|
2018-02-28 15:49:06 +01:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the result of the sequential execution of <see cref="IOperation"/>s (as part of an <see cref="IOperationSequence"/>).
|
|
|
|
|
/// </summary>
|
2018-02-28 15:49:06 +01:00
|
|
|
|
public enum OperationResult
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that the operation has been aborted due to an expected condition, e.g. as result of a user decision.
|
|
|
|
|
/// </summary>
|
2018-03-21 15:28:59 +01:00
|
|
|
|
Aborted = 1,
|
2018-02-28 15:49:06 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that the operation has failed due to an invalid or unexpected condition.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Failed,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that the operation has been executed successfully.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Success
|
|
|
|
|
}
|
|
|
|
|
}
|