Show / Hide Table of Contents

    Interface ICommandAction

    Creates an action that can be yielded in commands.

    Namespace: QFSW.QC
    Assembly: QFSW.QC.dll
    Syntax
    public interface ICommandAction

    Properties

    IsFinished

    If the action has finished. Should not be called before Start.

    Declaration
    bool IsFinished { get; }
    Property Value
    Type Description
    Boolean

    StartsIdle

    If the action should start off idle, causing the execution to suspend until executed again. It is recommended to make this false if the action should be instant.

    Declaration
    bool StartsIdle { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Finalize(ActionContext)

    Finalizes the action. Should not be called unless IsFinished is true.

    Declaration
    void Finalize(ActionContext context)
    Parameters
    Type Name Description
    ActionContext context

    The context that the action is being executed on.

    Start(ActionContext)

    Starts the action.

    Declaration
    void Start(ActionContext context)
    Parameters
    Type Name Description
    ActionContext context

    The context that the action is being executed on.

    Extension Methods

    ArraySingleExtensions.AsArraySingle<T>(T)
    CollectionExtensions.Yield<T>(T)
    Quantum Console by QFSW
    Back to top