public static Polly.Registry.IPolicyRegistry <string> AddPolicyRegistry(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Polly.Registry.IPolicyRegistry <string> registry) { throw null; }
private static Polly.Registry.IPolicyRegistry <string> AddPoliciesToRegistry <TAsyncPolicy, TSyncPolicy>(this Polly.Registry.IPolicyRegistry <string> registry, TSyncPolicy syncPolicy, TAsyncPolicy asyncPolicy) where TAsyncPolicy : Polly.IAsyncPolicy where TSyncPolicy : Polly.ISyncPolicy { registry.Add(PollyPolicies.AsyncPolicy, asyncPolicy); registry.Add(PollyPolicies.SyncPolicy, syncPolicy); return(registry); }