TriLib
Search Results for

    Show / Hide Table of Contents

    Class ContextualizedAction

    Represents an Action with a context used by Threads.

    Inheritance
    object
    ContextualizedAction
    Implements
    IContextualizedAction
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: TriLibCore.General
    Assembly: TriLibCore.dll
    Syntax
    public class ContextualizedAction : IContextualizedAction

    Constructors

    ContextualizedAction(Action)

    Initializes the Contextualized Action using the given Action.

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

    The Action to be executed.

    Fields

    Action

    Action to call on the new Thread.

    Declaration
    public readonly Action Action
    Field Value
    Type Description
    Action

    Properties

    Completed

    Indicates whether this Action is completed.

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

    Methods

    GetContext()

    Returns the Context used in this Action.

    Declaration
    public AssetLoaderContext GetContext()
    Returns
    Type Description
    AssetLoaderContext

    Invoke()

    Invokes the Action on the new Thread with the Context as the argument.

    Declaration
    public void Invoke()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    IContextualizedAction

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    In this article
    Back to top Generated by DocFX