> ## 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 IHarnessRunnerSession

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

This interface represents an open session to a harness allowing execution of the
component.

Session objects are informational to the infrastructure. It is not guaranteed that
instances of the harness map one to one to session objects, though that will generally be
true.

Additionally, clients should not assume that input values are maintained between calls to
ExecuteAsync. Each call should send all input variable values.

This object is not thread safe. It uses the task-based asynchronous pattern.

```csharp theme={null}
public interface IHarnessRunnerSession : IDisposableAndAsync, IDisposable

```

#### Implements

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

## Properties

[PlugInInstance](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentAPI.IHarnessRunnerSession.PlugInInstance.md)

Gets the metadata about the plug-in that is responsible for this pacz instance.

## Methods

[CreateExecutionInstance()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentAPI.IHarnessRunnerSession.CreateExecutionInstance.md)

Creates an instance of `Phoenix.ComponentAPI.IExecutionInstance` which will allow the client
to listen for events and start the run.

[GetPaczAsync()](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentAPI.IHarnessRunnerSession.GetPaczAsync.md)

Gets the IPacz instance for this instance.

[SetMetadataAsync(IReadOnlyDictionary\<string, string>)](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentAPI.IHarnessRunnerSession.SetMetadataAsync.md#setmetadataasync-ireadonlydictionary\<string-string>)

Sets the metadata dictionary that is presented to the runner on the
`Phoenix.ComponentAPI.IHarnessRunnerHost.Metadata` property. Note, the system may
add additional metadata items as appropriate.

If the dictionary contains keys that begin with "phx:logscope:", the
prefix will be removed and the key value pairs added to a logger scope on
`Phoenix.ComponentAPI.IHarnessRunnerHost.Logger` before execution. Clients may use
this to associate logs from execution back to the given execution request.
