Table of Contents

Method OnRetry

Namespace
LMKit.Agents.Resilience
Assembly
LM-Kit.NET.dll

OnRetry(Action<Exception, int, TimeSpan>)

Sets a callback invoked before each retry.

public RetryPolicy OnRetry(Action<Exception, int, TimeSpan> onRetry)

Parameters

onRetry Action<Exception, int, TimeSpan>

Callback with exception, attempt number, and delay.

Returns

RetryPolicy

This policy for method chaining.