Class ContextualizedAction
Represents an Action that can be executed on a worker thread without an associated execution context.
Implements
Namespace: TriLibCore.General
Assembly: TriLibCore.Source.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
Action to be invoked on the worker thread.
Declaration
public readonly Action Action
Field Value
| Type | Description |
|---|---|
| Action |
Properties
Completed
Gets a value indicating whether the action has completed execution.
This implementation always returns false because no awaitable
context is associated with this action.
Declaration
public bool Completed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
GetContext()
Gets the asset loader context associated with this action.
This implementation always returns null.
Declaration
public AssetLoaderContext GetContext()
Returns
| Type | Description |
|---|---|
| AssetLoaderContext | Always |
Invoke()
Invokes the action on the worker thread.
Declaration
public void Invoke()
ToString()
Returns a string that represents the current action.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string containing the target type and method name of the action,
or |