Click or drag to resize

LogicalChannelsExecuteT Method (ChannelExecutorT)

Allocates a logical channel from the default channel pool and executes the supplied channel executor. The logical channel is returned to the pool when the executor completes execution, either successfully or by throwing an exception.

Namespace:  OBCOM.NetSwitchLib.Clients
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public static T Execute<T>(
	ChannelExecutor<T> executor
)

Parameters

executor
Type: OBCOM.NetSwitchLib.ClientsChannelExecutorT
The channel executor to be executed.

Type Parameters

T
The type of the value returned by executor.

Return Value

Type: T
The value returned by executor.
Exceptions
ExceptionCondition
ArgumentNullExceptionexecutor is null.
See Also