Search Results for

    Show / Hide Table of Contents

    Class WaitCountWorkAction

    A work action to continue with other action.

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

    Constructors

    WaitCountWorkAction(Scene, int, params IWorkAction[])

    Initializes a new instance of the WaitCountWorkAction class.

    Declaration
    public WaitCountWorkAction(Scene scene, int countLimit, params IWorkAction[] childActions)
    Parameters
    Type Name Description
    Scene scene

    The scene.

    int countLimit

    The count limit.

    IWorkAction[] childActions

    The child action list.

    WaitCountWorkAction(Scene, int, params Func<IWorkAction>[])

    Initializes a new instance of the WaitCountWorkAction class.

    Declaration
    public WaitCountWorkAction(Scene scene, int countLimit, params Func<IWorkAction>[] childActionGenerators)
    Parameters
    Type Name Description
    Scene scene

    The scene.

    int countLimit

    The count limit.

    Func<IWorkAction>[] childActionGenerators

    The child generator action list.

    WaitCountWorkAction(IWorkAction, int, params IWorkAction[])

    Initializes a new instance of the WaitCountWorkAction class.

    Declaration
    public WaitCountWorkAction(IWorkAction parent, int countLimit, params IWorkAction[] childActions)
    Parameters
    Type Name Description
    IWorkAction parent

    The parent action.

    int countLimit

    The count limit.

    IWorkAction[] childActions

    The child action list.

    WaitCountWorkAction(IWorkAction, int, params Func<IWorkAction>[])

    Initializes a new instance of the WaitCountWorkAction class.

    Declaration
    public WaitCountWorkAction(IWorkAction parent, int countLimit, params Func<IWorkAction>[] childActionGenerators)
    Parameters
    Type Name Description
    IWorkAction parent

    The parent action.

    int countLimit

    The count limit.

    Func<IWorkAction>[] childActionGenerators

    The child generator action list.

    Properties

    CanceledCount

    Gets the cancel count.

    Declaration
    protected int CanceledCount { get; }
    Property Value
    Type Description
    int

    The canceled.

    ChildActions

    Gets the child actions.

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

    CompletedCount

    Gets the number of completed actions.

    Declaration
    protected int CompletedCount { get; }
    Property Value
    Type Description
    int

    The completed.

    CountLimit

    Gets the count limit.

    Declaration
    protected int CountLimit { get; }
    Property Value
    Type Description
    int

    The count limit.

    Methods

    ActionCanceled(IWorkAction)

    Method invoked when an action is Canceled.

    Declaration
    protected void ActionCanceled(IWorkAction action)
    Parameters
    Type Name Description
    IWorkAction action

    The work action.

    ActionCompleted(IWorkAction)

    Method invoked when an action is Canceled.

    Declaration
    protected void ActionCompleted(IWorkAction action)
    Parameters
    Type Name Description
    IWorkAction action

    The work action.

    CheckEnd()

    Checks the end.

    Declaration
    protected void CheckEnd()

    PerformCancel()

    Perform cancel action.

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

    PerformRun()

    Perform Run actions.

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

    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