Skip to main content

Component Plug-In SDK 2026 R1

Interface IHarnessRunner

Last update: 19.06.2026

Namespace: Phoenix.ComponentAPI
Assembly: Phoenix.ComponentAPI.dll

The interface that a harness runner must implement. The implementing class should use the following attributes:

  • System.Runtime.InteropServices.GuidAttribute
  • Phoenix.Plugins.PlugInTypesAttribute(typeof(IHarnessRunner))
  • Phoenix.Plugins.PlugInDisplayName

A harness does not need to be thread safe and will never be called from more than one thread.

If the harness runner implements IDisposable, it will be disposed at an appropriate time.

[PlugInInterfaceName("Phoenix::IHarnessRunner")]
public interface IHarnessRunner

Methods

ConstructAsync(IHarnessRunnerHost)

Will always be called first to allow the runner to instantiate itself.

RunAsync(IReadOnlyDictionary<string, VariableState>, VariableValueScope, CancellationToken)

Tells this harness to run.

Connect with Ansys