TriLib Exporter
Search Results for

    Show / Hide Table of Contents

    Class ContextualizedAction<T>

    Represents an action with a context used by threads.

    Inheritance
    object
    ContextualizedAction<T>
    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<T> : IContextualizedAction
    Type Parameters
    Name Description
    T

    The type of the context.

    Constructors

    ContextualizedAction(Action<T>, T)

    Initializes a new instance of the ContextualizedAction<T> class using the given action and context.

    Declaration
    public ContextualizedAction(Action<T> action, T context)
    Parameters
    Type Name Description
    Action<T> action

    The action to be executed.

    T context

    The context passed to the action.

    Fields

    Action

    The action to call on the new thread.

    Declaration
    public readonly Action<T> Action
    Field Value
    Type Description
    Action<T>

    Context

    The context object passed to the action.

    Declaration
    public readonly T Context
    Field Value
    Type Description
    T

    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 asset writer context associated with this 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, method, and completion status, or "Invalid Action" if the action is null.

    Overrides
    object.ToString()

    Implements

    IContextualizedAction
    In this article
    Back to top Generated by DocFX