Table of Contents

Class ActionResult

Namespace
TimeCockpit.Data
Assembly
TimeCockpit.Data.dll

class representing the result of an action.

public class ActionResult
Inheritance
Object
ActionResult
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

output String

the output of the action.

modifiedInputSet IEnumerable<EntityObject>

the modified input set.

exception Exception

optionally, an exception is one was thrown.

result IActionResult

optionally, 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

IActionResult

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.