Table of Contents

Method DoAndReturnPerInstrumentPerChannelResults

Namespace
NationalInstruments.SemiconductorTestLibrary.Common
Assembly
NationalInstruments.SemiconductorTestLibrary.Abstractions.dll

DoAndReturnPerInstrumentPerChannelResults<TSessionInformation, TResult>(ISessionsBundle<TSessionInformation>, Func<TSessionInformation, TResult>)

Does an operation on all sessions in parallel with the same inputs and returns per-instrument per-channel results.

public static TResult[] DoAndReturnPerInstrumentPerChannelResults<TSessionInformation, TResult>(this ISessionsBundle<TSessionInformation> sessionsBundle, Func<TSessionInformation, TResult> function)

Parameters

sessionsBundle ISessionsBundle<TSessionInformation>

The sessions bundle object.

function Func<TSessionInformation, TResult>

The operation to happen on each session info.

Returns

TResult[]

An array of the operation results for all sessions.

Type Parameters

TSessionInformation

The type of the session info.

TResult

The type of the operation result.

DoAndReturnPerInstrumentPerChannelResults<TSessionInformation, TResult>(ISessionsBundle<TSessionInformation>, Func<TSessionInformation, SitePinInfo, TResult>)

Does an operation on all sessions and channels in parallel and returns per-instrument per-channel results.

public static TResult[][] DoAndReturnPerInstrumentPerChannelResults<TSessionInformation, TResult>(this ISessionsBundle<TSessionInformation> sessionsBundle, Func<TSessionInformation, SitePinInfo, TResult> function)

Parameters

sessionsBundle ISessionsBundle<TSessionInformation>

The sessions bundle object.

function Func<TSessionInformation, SitePinInfo, TResult>

The operation to happen on each session info. The second parameter is the SitePinInfo associated with a single channel.

Returns

TResult[][]

An array of the operation results for all sessions.

Type Parameters

TSessionInformation

The type of the session info.

TResult

The type of the operation result.

DoAndReturnPerInstrumentPerChannelResults<TSessionInformation, TResult1, TResult2>(ISessionsBundle<TSessionInformation>, Func<TSessionInformation, Tuple<TResult1, TResult2>>)

Does an operation on all sessions in parallel with the same inputs and returns per-instrument per-channel results.

public static Tuple<TResult1[], TResult2[]> DoAndReturnPerInstrumentPerChannelResults<TSessionInformation, TResult1, TResult2>(this ISessionsBundle<TSessionInformation> sessionsBundle, Func<TSessionInformation, Tuple<TResult1, TResult2>> function)

Parameters

sessionsBundle ISessionsBundle<TSessionInformation>

The sessions bundle object.

function Func<TSessionInformation, Tuple<TResult1, TResult2>>

The operation to happen on each session info.

Returns

Tuple<TResult1[], TResult2[]>

Two arrays of the operation results for all sessions.

Type Parameters

TSessionInformation

The type of the session info.

TResult1

The type of the first item of the operation result.

TResult2

The type of the second item of the operation result.