TriLib Exporter
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.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: TriLibExporter
    Assembly: Assembly-CSharp.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

    The action to be called on the new thread.

    Declaration
    public readonly Action Action
    Field Value
    Type Description
    Action

    Properties

    Completed

    Gets a value indicating whether the action has been completed.

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

    Methods

    GetContext()

    Retrieves the context associated with the action.

    Declaration
    public AssetWriterContext GetContext()
    Returns
    Type Description
    AssetWriterContext

    The AssetWriterContext, or null if no context is available.

    Invoke()

    Invokes the action on the new thread with the context as the argument.

    Declaration
    public void Invoke()

    ToString()

    Returns a string representation of the contextualized action.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string describing the action's target and method, or "Invalid Action" if the action is null.

    Overrides
    object.ToString()

    Implements

    IContextualizedAction
    In this article
    Back to top Generated by DocFX