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=new TimeoutStrategyOptions();// add an event that's called when timeout occurrs
options.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=new ResilienceStrategyBuilder().AddTimeout(options).Build();// simple setupvarstrategy=new ResilienceStrategyBuilder().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: