コード例 #1
0
 /// <summary>
 /// Executes a function with the retry logic specified on the ReliableConnection.
 /// </summary>
 /// <typeparam name="TResult">The type of the result of the function.</typeparam>
 /// <param name="function">The function to execute and return.</param>
 /// <returns>The return value of the function.</returns>
 private TResult ExecuteWithRetry <TResult>(Func <TResult> function)
 {
     return(_retryStrategy.ExecuteWithRetry(this, function));
 }