OTX-Runtime for DotNet  
OpenTestSystem.Otx.Runtime.Api.RuntimeManagerFactory Class Reference

Factory class for creating runtime managers, see IRuntimeManager More...

Static Public Member Functions

static IRuntimeManager CreatePipeRuntimeManager (string otxRunnerPipeName)
 Creates PipeRuntimeManager without DiagManager. More...
 
static IRuntimeManager CreatePipeRuntimeManager (string otxRunnerPipeName, string diagManagerPipeName)
 Creates PipeRuntimeManager with Pipe DiagManager. More...
 
static IRuntimeManager CreateSocketRuntimeManager (ushort otxRunnerPort)
 Creates SocketRuntimeManager without DiagManager. More...
 
static IRuntimeManager CreateSocketRuntimeManager (ushort otxRunnerPort, ushort diagManagerPort)
 Creates SocketRuntimeManager with Socket DiagManager. More...
 

Detailed Description

Factory class for creating runtime managers, see IRuntimeManager

Member Function Documentation

◆ CreatePipeRuntimeManager() [1/2]

static IRuntimeManager OpenTestSystem.Otx.Runtime.Api.RuntimeManagerFactory.CreatePipeRuntimeManager ( string  otxRunnerPipeName)
inlinestatic

Creates PipeRuntimeManager without DiagManager.

Parameters
otxRunnerPipeNamePipe name which the OtxRunner listens on.
Returns
A PipeRuntimeManager.
Exceptions
Exceptions.InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.
System.ArgumentNullExceptionThrown when otx runner pipe name is null.

Examples

IRuntimeManager socketRt = RuntimeManagerFactory.CreateSocketRuntimeManager(1000);

◆ CreatePipeRuntimeManager() [2/2]

static IRuntimeManager OpenTestSystem.Otx.Runtime.Api.RuntimeManagerFactory.CreatePipeRuntimeManager ( string  otxRunnerPipeName,
string  diagManagerPipeName 
)
inlinestatic

Creates PipeRuntimeManager with Pipe DiagManager.

Parameters
otxRunnerPipeNamePipe name which the OtxRunner listens on.
diagManagerPipeNamePipe name which the DiagManager listens on.
Returns
A PipeRuntimeManager.
Exceptions
Exceptions.InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.
System.ArgumentNullExceptionThrown when otx runner pipe name or diag manager pipe name is null.

Examples

IRuntimeManager pipeRt = RuntimeManagerFactory.CreatePipeRuntimeManager("Emotive", "DiagManager");

◆ CreateSocketRuntimeManager() [1/2]

static IRuntimeManager OpenTestSystem.Otx.Runtime.Api.RuntimeManagerFactory.CreateSocketRuntimeManager ( ushort  otxRunnerPort)
inlinestatic

Creates SocketRuntimeManager without DiagManager.

Parameters
otxRunnerPortPort which the OtxRunner listens on, or 0 to specify any available port.
Returns
A SocketRuntimeManager.
Exceptions
Exceptions.InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

IRuntimeManager socketRt = RuntimeManagerFactory.CreateSocketRuntimeManager(1000);

◆ CreateSocketRuntimeManager() [2/2]

static IRuntimeManager OpenTestSystem.Otx.Runtime.Api.RuntimeManagerFactory.CreateSocketRuntimeManager ( ushort  otxRunnerPort,
ushort  diagManagerPort 
)
inlinestatic

Creates SocketRuntimeManager with Socket DiagManager.

Parameters
otxRunnerPortPort which the OtxRunner listens on, or 0 to specify any available port.
diagManagerPortPort which the DiagManager listens on.
Returns
A SocketRuntimeManager.
Exceptions
Exceptions.InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

IRuntimeManager socketRt = RuntimeManagerFactory.CreateSocketRuntimeManager(1000, 1001);

The documentation for this class was generated from the following file: