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