We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0073ab8 commit a9672a3Copy full SHA for a9672a3
1 file changed
src/CometD.NetCore.Salesforce/Resilience/ResilientForceClient.cs
@@ -428,7 +428,7 @@ private IAsyncPolicy GetAuthenticationRetryPolicy()
428
.Handle<ForceApiException>(x => x.Message.Contains("ErrorCode INVALID_SESSION_ID"))
429
.RetryAsync(
430
retryCount: _options.Retry,
431
- onRetry: (ex, count, context) =>
+ onRetryAsync: async (ex, count, context) =>
432
{
433
var methodName = context[PolicyContextMethod] ?? "MethodNotSpecified";
434
@@ -439,7 +439,8 @@ private IAsyncPolicy GetAuthenticationRetryPolicy()
439
_options.Retry,
440
context.PolicyKey,
441
ex.Message);
442
- _forceClient.Invalidate();
+
443
+ await _forceClient.Invalidate();
444
})
445
.WithPolicyKey($"{nameof(ResilientForceClient)}RetryAsync");
446
}
0 commit comments