| LogicalChannelsExecuteT Method (String, 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>(
string poolName,
ChannelExecutor<T> executor
)
Public Shared Function Execute(Of T) (
poolName As String,
executor As ChannelExecutor(Of T)
) As T
Parameters
- poolName
- Type: SystemString
The name of the channel pool.
- 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 See Also