Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created January 11, 2021 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/53749c157f72d231c5bfdd19e6ddcc41 to your computer and use it in GitHub Desktop.
Save rahulsahay19/53749c157f72d231c5bfdd19e6ddcc41 to your computer and use it in GitHub Desktop.
polly.cs
services.AddHttpClient<IDiscountService, DiscountService>(c =>
c.BaseAddress = new Uri(Configuration["ApiConfigs:Discount:Uri"]))
.AddPolicyHandler(GetRetryPolicy())
.AddPolicyHandler(GetCircuitBreakerPolicy());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment