You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="context">The context associated with the callback.</param>
27
28
/// <param name="state">The state associated with the callback.</param>
28
29
/// <returns>The instance of <see cref="ValueTask"/> that represents the asynchronous execution.</returns>
29
30
/// <exception cref="ArgumentNullException">Thrown when <paramref name="callback"/> or <paramref name="context"/> is <see langword="null"/>.</exception>
/// <param name="context">The context associated with the callback.</param>
46
49
/// <returns>The instance of <see cref="ValueTask"/> that represents the asynchronous execution.</returns>
47
50
/// <exception cref="ArgumentNullException">Thrown when <paramref name="callback"/> or <paramref name="context"/> is <see langword="null"/>.</exception>
/// <param name="context">The context associated with the callback.</param>
13
14
/// <param name="state">The state associated with the callback.</param>
14
15
/// <returns>An instance of <see cref="ValueTask"/> that represents the asynchronous execution.</returns>
15
16
/// <exception cref="ArgumentNullException">Thrown when <paramref name="callback"/> or <paramref name="context"/> is <see langword="null"/>.</exception>
16
-
publicTResultExecute<TState>(
17
+
publicTResultExecute<TResult,TState>(
17
18
Func<ResilienceContext,TState,TResult>callback,
18
19
ResilienceContextcontext,
19
20
TStatestate)
21
+
whereTResult:T
20
22
{
21
23
Guard.NotNull(callback);
22
24
Guard.NotNull(context);
@@ -27,13 +29,15 @@ public TResult Execute<TState>(
27
29
/// <summary>
28
30
/// Executes the specified callback.
29
31
/// </summary>
32
+
/// <typeparam name="TResult">The type of the result.</typeparam>
/// <param name="context">The context associated with the callback.</param>
32
35
/// <returns>An instance of <see cref="ValueTask"/> that represents the asynchronous execution.</returns>
33
36
/// <exception cref="ArgumentNullException">Thrown when <paramref name="callback"/> or <paramref name="context"/> is <see langword="null"/>.</exception>
34
-
publicTResultExecute(
37
+
publicTResultExecute<TResult>(
35
38
Func<ResilienceContext,TResult>callback,
36
39
ResilienceContextcontext)
40
+
whereTResult:T
37
41
{
38
42
Guard.NotNull(callback);
39
43
Guard.NotNull(context);
@@ -44,13 +48,15 @@ public TResult Execute(
44
48
/// <summary>
45
49
/// Executes the specified callback.
46
50
/// </summary>
51
+
/// <typeparam name="TResult">The type of the result.</typeparam>
0 commit comments