Click or drag to resize
IRiakEndPointUseConnectionTResult Method (FuncIRiakConnection, RiakResultTResult, Int32)
Executes a delegate function using a IRiakConnection, and returns the results. Retries if possible for certain error states.

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

Parameters

useFun
Type: SystemFuncIRiakConnection, RiakResultTResult
The delegate function to execute. Takes an IRiakConnection as input, and returns a RiakResultTResult as the result 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: RiakResultTResult
The result of the useFun delegate.
See Also