Click or drag to resize
IRiakEndPointUseDelayedConnectionTResult Method
Executes a delegate function using a IRiakConnection, and returns the results. Retries if possible for certain error states. This method is used over UseConnection(FuncIRiakConnection, RiakResult, Int32) to keep a connection open to receive streaming results.

Namespace:  RiakClient
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
RiakResult<IEnumerable<TResult>> UseDelayedConnection<TResult>(
	Func<IRiakConnection, Action, RiakResult<IEnumerable<TResult>>> useFun,
	int retryAttempts
)
where TResult : RiakResult

Parameters

useFun
Type: SystemFuncIRiakConnection, Action, RiakResultIEnumerableTResult
The delegate function to execute. Takes an IRiakConnection and an Action continuation as input, and returns a RiakResultTResult containing an IEnumerableT as the results of the operation.
retryAttempts
Type: SystemInt32
The number of times to retry an operation.

Type Parameters

TResult
The type of the result from the useFun parameter.

Return Value

Type: RiakResultIEnumerableTResult
The results of the useFun delegate.
See Also