Class ContextualizedAction
Represents an action with a context used by threads.
Implements
Inherited Members
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 |
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. |