Search Results for

    Show / Hide Table of Contents

    Class ContextualizedAction

    Represents an Action that can be executed on a worker thread without an associated execution context.

    Inheritance
    object
    ContextualizedAction
    Implements
    IContextualizedAction
    Namespace: TriLibCore.General
    Assembly: TriLibCore.Source.dll
    Syntax
    public class ContextualizedAction : IContextualizedAction

    Constructors

    ContextualizedAction(Action)

    Initializes a new instance of the ContextualizedAction class using the given action.

    Declaration
    public ContextualizedAction(Action action)
    Parameters
    Type Name Description
    Action action

    The action to be executed.

    Fields

    Action

    Action to be invoked on the worker thread.

    Declaration
    public readonly Action Action
    Field Value
    Type Description
    Action

    Properties

    Completed

    Gets a value indicating whether the action has completed execution. This implementation always returns false because no awaitable context is associated with this action.

    Declaration
    public bool Completed { get; }
    Property Value
    Type Description
    bool

    Methods

    GetContext()

    Gets the asset loader context associated with this action. This implementation always returns null.

    Declaration
    public AssetLoaderContext GetContext()
    Returns
    Type Description
    AssetLoaderContext

    Always null, as this action does not provide an execution context.

    Invoke()

    Invokes the action on the worker thread.

    Declaration
    public void Invoke()

    ToString()

    Returns a string that represents the current action.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string containing the target type and method name of the action, or Invalid Action if the action is null.

    Overrides
    Object.ToString()

    Implements

    IContextualizedAction

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    In this article
    Back to top TriLib documentation