RiakEndPointUseConnectionTResult 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 public RiakResult<TResult> UseConnection<TResult>(
Func<IRiakConnection, RiakResult<TResult>> useFun,
int retryAttempts
)
abstract UseConnection :
useFun : Func<IRiakConnection, RiakResult<'TResult>> *
retryAttempts : int -> RiakResult<'TResult>
override UseConnection :
useFun : Func<IRiakConnection, RiakResult<'TResult>> *
retryAttempts : int -> RiakResult<'TResult>
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:
RiakResultTResultThe result of the
useFun delegate.
Implements
IRiakEndPointUseConnectionTResult(FuncIRiakConnection, RiakResultTResult, Int32)See Also