Skip to main content

Component Plug-In SDK 2026 R1

Class ClientFactory

Last update: 19.06.2026

Namespace: Phoenix.ComponentClient
Assembly: Phoenix.ComponentClient.dll

Static entry points for instantiating Harness Runner Clients.

These static methods are thread safe.

public static class ClientFactory

Inheritance

object ← ClientFactory

Inherited Members

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()

Methods

ConfigureServiceCollection(IServiceCollection)

ConfigureServiceCollection<HarnessRunnerClientType, HarnessRunnerClientImpl>(IServiceCollection)

ConfigureWithDefaultRepositories(IServiceCollection, Assembly, params string[])

ConfigureWithDefaultRepositories<HarnessRunnerClientType, HarnessRunnerClientImpl>(IServiceCollection, Assembly, params string[])

Configure Microsoft's Dependency Injection with the appropriate providers to instantiate IHarnessRunnerClient instances and backs it with the default repositories as defined in Phoenix.PlugIns.PlugInManagerFactory.ConfigureWithDefaultRepositories(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Reflection.Assembly,System.String[])

This method is intended to be a way for other Phoenix.ComponentAPI.IHarnessRunnerClient instances to register themselves while sharing the same code as the default implementations.

GetClient()

Retrieve a new instance of IHarnessRunnerClient. It will be pre-initialized and ready to do work. If you use this method, you do not need to call ConfigureServiceCollection or ConfigureWithDefaultRepositories.

Connect with Ansys