NewPluginTaskExecutionContext
Creates a new PluginTaskExecutionContext by wrapping an existing pluginsCore.TaskExecutionContext and applying any provided options. This function initializes the context with metadata and overrides from the original context.
def NewPluginTaskExecutionContext(
tc: pluginsCore.TaskExecutionContext,
options: ...PluginTaskExecutionContextOption
) - > pluginsCore.TaskExecutionContext
Creates a new plugin task execution context by wrapping an existing task execution context and applying any provided options. This function is used to extend or modify the behavior of a standard task execution context for plugin-specific needs.
Parameters
| Name | Type | Description |
|---|---|---|
| tc | pluginsCore.TaskExecutionContext | The base task execution context to be wrapped and extended. |
| options | ...PluginTaskExecutionContextOption | A variadic list of options to apply to the new plugin task execution context, allowing for customization of its properties. |
Returns
| Type | Description |
|---|---|
pluginsCore.TaskExecutionContext | The new plugin task execution context, which wraps the original context and incorporates any specified options. |