Click or drag to resize
RiakEndPointUseConnection Method (FuncIRiakConnection, RiakResult, 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
public RiakResult UseConnection(
	Func<IRiakConnection, RiakResult> useFun,
	int retryAttempts
)

Parameters

useFun
Type: SystemFuncIRiakConnection, RiakResult
The delegate function to execute. Takes an IRiakConnection as input, and returns a RiakResult as the result of the operation.
retryAttempts
Type: SystemInt32
The number of times to retry an operation.

Return Value

Type: RiakResult
The result of the useFun delegate.

Implements

IRiakEndPointUseConnection(FuncIRiakConnection, RiakResult, Int32)
See Also