> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface IHarnessBuilderUIHost<RUNNER>

Namespace: [Phoenix.ComponentBuilderAPI](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentBuilderAPI)\
Assembly: Phoenix.ComponentBuilderAPI.dll

A context object passed to builder UIs.

```csharp theme={null}
public interface IHarnessBuilderUIHost<RUNNER> : ILicenseProvider, IDisposable where RUNNER : IHarnessRunner

```

#### Type Parameters

`RUNNER`

#### Implements

ILicenseProvider,
[IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

## Properties

[ExtractedPacz](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost-1.ExtractedPacz.md)

The extracted pacz being edited. The plug-in is not responsible
for disposing the returned object.

[Logger](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost-1.Logger.md)

Get a logger to use when writing messages.

## Methods

[CallRunnerAsync\<T>(Func\<IHarnessRunnerHost, RUNNER, T>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost-1.CallRunnerAsync.md)

The builder UI and the runner will not be in the same thread. Use this function to safely access
the runner. The function passed in will be invoked on the runner's thread and any return values
will be provided via the Task`T` return value.

Note: Do not access UI elements from the passed in function. Instead, collect results into the returned
object and use them from the return value.

[CallRunnerAsync\<T>(Func\<IHarnessRunnerHost, RUNNER, Task\<T>>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost-1.CallRunnerAsync.md)

The builder UI and the runner will not be in the same thread. Use this function to safely access
the runner. The function passed in will be invoked on the runner's thread and any return values
will be provided via the Task`T` return value.

Note: Do not access UI elements from the passed in function. Instead, collect results into the returned
object and use them from the return value.

[CallRunnerAsync(Action\<IHarnessRunnerHost, RUNNER>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost-1.CallRunnerAsync.md)

The builder UI and the runner will not be in the same thread. Use this function to safely access
the runner. The action passed in will be invoked on the runner's thread.

Note: Do not access UI elements from the passed in action. If you need results from the runner,
use the overload that returns a value. `Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost`1.CallRunnerAsync``1(System.Func{Phoenix.ComponentAPI.IHarnessRunnerHost,`0,``0})\`

[CallRunnerAsync(Func\<IHarnessRunnerHost, RUNNER, Task>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost-1.CallRunnerAsync.md)

The builder UI and the runner will not be in the same thread. Use this function to safely access
the runner. The action passed in will be invoked on the runner's thread.

Note: Do not access UI elements from the passed in action. If you need results from the runner,
use the overload that returns a value. `Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost`1.CallRunnerAsync``1(System.Func{Phoenix.ComponentAPI.IHarnessRunnerHost,`0,``0})\`

[RaiseTestRunEvent()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost-1.RaiseTestRunEvent.md)

Raises an event requesting that the OEM client perform a test run and does not wait for the run to complete.
The test run will use the input values from the OEM, so `Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost`1.SaveAsync\` should be called before
calling this if changes are present in the builder UI.

[SaveAsync()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost-1.SaveAsync.md)

Inform the host that the user has applied changes to the IHarness being edited. The changes will be applied
to the `Phoenix.ComponentBuilderAPI.IHarnessBuilderUIHost`1.ExtractedPacz\` object.
