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
// advanced setupvaroptions=newTimeoutStrategyOptions();// add an event that's called when timeout occurrsoptions.OnTimeout.Add(args =>Console.WriteLine("Timeout occurred!"))// add callback to result generator, you can return different timeouts based on the result type or data from resilience context
options.TimeoutGenerator.Add(args =>TimeSpan.FromSeconds(5));varstrategy=newResilienceStrategyBuilder().AddTimeout(options).Build();// simple setupvarstrategy=newResilienceStrategyBuilder().AddTimeout(TimeSpan.FromSeconds(5)).Build();
The text was updated successfully, but these errors were encountered:
Migrate the Timeout Policy to V8 API.
Prerequisites
#1070
#1067
The details on how to introduce the new resilience strategies for V8 are here.
The steps in general:
Polly.Core
TimeoutOptions
API
API Usage
The text was updated successfully, but these errors were encountered: