IRiakEndPointUseConnection 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 RiakResult UseConnection(
Func<IRiakConnection, RiakResult> useFun,
int retryAttempts
)
abstract UseConnection :
useFun : Func<IRiakConnection, RiakResult> *
retryAttempts : int -> RiakResult
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:
RiakResultThe result of the
useFun delegate.
See Also