Search Results for

    Show / Hide Table of Contents

    Class WorkActionNode

    A work action to continue with another action.

    Inheritance
    object
    WorkAction
    WorkActionNode
    Implements
    IWorkAction
    Inherited Members
    WorkAction.Completed
    WorkAction.Canceled
    WorkAction.IsSkippable
    WorkAction.Skipped
    WorkAction.State
    WorkAction.Scene
    WorkAction.Run()
    WorkAction.TrySkip()
    WorkAction.Cancel()
    WorkAction.PerformCompleted()
    Namespace: Evergine.Components.WorkActions
    Assembly: Evergine.Components.dll
    Syntax
    public class WorkActionNode : WorkAction, IWorkAction

    Constructors

    WorkActionNode(IWorkAction, Scene)

    Initializes a new instance of the WorkActionNode class.

    Declaration
    public WorkActionNode(IWorkAction wrappedAction, Scene scene = null)
    Parameters
    Type Name Description
    IWorkAction wrappedAction

    The wrapped work action.

    Scene scene

    The scene.

    WorkActionNode(IWorkAction, IWorkAction)

    Initializes a new instance of the WorkActionNode class.

    Declaration
    public WorkActionNode(IWorkAction parent, IWorkAction wrappedAction)
    Parameters
    Type Name Description
    IWorkAction parent

    The parent action.

    IWorkAction wrappedAction

    The wrapped work action.

    WorkActionNode(IWorkAction, Func<IWorkAction>)

    Initializes a new instance of the WorkActionNode class.

    Declaration
    public WorkActionNode(IWorkAction parent, Func<IWorkAction> actionFunction)
    Parameters
    Type Name Description
    IWorkAction parent

    The parent action.

    Func<IWorkAction> actionFunction

    The wrapped work action.

    WorkActionNode(Func<IWorkAction>, Scene)

    Initializes a new instance of the WorkActionNode class.

    Declaration
    public WorkActionNode(Func<IWorkAction> actionFunction, Scene scene = null)
    Parameters
    Type Name Description
    Func<IWorkAction> actionFunction

    The wrapped work action.

    Scene scene

    The scene.

    Fields

    wrappedAction

    The wrapped action.

    Declaration
    protected IWorkAction wrappedAction
    Field Value
    Type Description
    IWorkAction

    Properties

    ChildActions

    Gets the child tasks.

    Declaration
    public override IEnumerable<IWorkAction> ChildActions { get; }
    Property Value
    Type Description
    IEnumerable<IWorkAction>

    The child tasks.

    Overrides
    WorkAction.ChildActions

    Methods

    PerformCancel()

    Performs the work action cancellation.

    Declaration
    protected override void PerformCancel()
    Overrides
    WorkAction.PerformCancel()

    PerformRun()

    Performs run actions.

    Declaration
    protected override void PerformRun()
    Overrides
    WorkAction.PerformRun()

    PerformSkip()

    Skips the action.

    Declaration
    protected override bool PerformSkip()
    Returns
    Type Description
    bool

    A value indicating if the work action is successfully skipped.

    Overrides
    WorkAction.PerformSkip()

    ToString()

    Returns a string that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents this instance.

    Overrides
    object.ToString()

    Implements

    IWorkAction

    Extension Methods

    WorkActionFactory.AndWaitCondition(IWorkAction, Func<bool>, int)
    WorkActionFactory.AsSkippableWorkAction(IWorkAction)
    WorkActionFactory.ContinueWith(IWorkAction, IWorkAction)
    WorkActionFactory.ContinueWith(IWorkAction, params IWorkAction[])
    WorkActionFactory.ContinueWith(IWorkAction, IEnumerable<IWorkAction>)
    WorkActionFactory.ContinueWith(IWorkAction, Func<IWorkAction>)
    WorkActionFactory.ContinueWith(IWorkAction, params Func<IWorkAction>[])
    WorkActionFactory.ContinueWithAction(IWorkAction, Action)
    WorkActionFactory.CreateParallelWorkActions(IWorkAction, IEnumerable<IWorkAction>)
    WorkActionFactory.Delay(IWorkAction, TimeSpan)
    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX