Class ActionResult
- Namespace
- TimeCockpit.Data
- Assembly
- TimeCockpit.Data.dll
class representing the result of an action.
public class ActionResult
- Inheritance
-
ObjectActionResult
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
ActionResult(String, IEnumerable<EntityObject>, Exception, IActionResult)
Initializes a new instance of the ActionResult class.
public ActionResult(string output, IEnumerable<EntityObject> modifiedInputSet, Exception exception = null, IActionResult result = null)
Parameters
outputStringthe output of the action.
modifiedInputSetIEnumerable<EntityObject>the modified input set.
exceptionExceptionoptionally, an exception is one was thrown.
resultIActionResultoptionally, a result of the action.
Properties
Exception
Gets a possible exception, may be null.
public Exception Exception { get; }
Property Value
- Exception
ModifiedInputSet
Gets the entityobjects in the state after they have been modified by the action.
public IEnumerable<EntityObject> ModifiedInputSet { get; }
Property Value
- IEnumerable<EntityObject>
Output
Gets the output of the action.
public string Output { get; }
Property Value
- String
Result
Gets a possible result from the action.
public IActionResult Result { get; }
Property Value
Methods
Succeeded()
Determines if the action has been executed successfully.
public bool Succeeded()
Returns
- Boolean
Returns a value indicating if the action has been executed successfully.