From 4ec03bedaffbe427e754bca288e6ef6ec153bae5 Mon Sep 17 00:00:00 2001
From: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com>
Date: Wed, 17 Jan 2024 05:34:21 +0000
Subject: [PATCH] .Net: Remove Polly as a dependency (#4617)
### Motivation and Context
Removing Polly as it's no longer used and will nevertheless need to be
updated by dependabot e.g.
https://github.com/microsoft/semantic-kernel/pull/4614.
### Description
### Contribution Checklist
- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone :smile:
---
dotnet/Directory.Packages.props | 1 -
dotnet/samples/KernelSyntaxExamples/Example08_RetryHandler.cs | 2 +-
dotnet/samples/KernelSyntaxExamples/KernelSyntaxExamples.csproj | 1 -
3 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/dotnet/Directory.Packages.props b/dotnet/Directory.Packages.props
index a95145ec25e4..144ad48e347a 100644
--- a/dotnet/Directory.Packages.props
+++ b/dotnet/Directory.Packages.props
@@ -50,7 +50,6 @@
-
diff --git a/dotnet/samples/KernelSyntaxExamples/Example08_RetryHandler.cs b/dotnet/samples/KernelSyntaxExamples/Example08_RetryHandler.cs
index 7795187704c6..df66d963fa15 100644
--- a/dotnet/samples/KernelSyntaxExamples/Example08_RetryHandler.cs
+++ b/dotnet/samples/KernelSyntaxExamples/Example08_RetryHandler.cs
@@ -34,7 +34,7 @@ public async Task RunAsync()
var logger = kernel.LoggerFactory.CreateLogger(typeof(Example08_RetryHandler));
- const string Question = "How popular is the Polly library?";
+ const string Question = "How do I add a standard resilience handler in IHttpClientBuilder??";
logger.LogInformation("Question: {Question}", Question);
// The call to OpenAI will fail and be retried a few times before eventually failing.
diff --git a/dotnet/samples/KernelSyntaxExamples/KernelSyntaxExamples.csproj b/dotnet/samples/KernelSyntaxExamples/KernelSyntaxExamples.csproj
index 9205e18811af..fc942262fe1a 100644
--- a/dotnet/samples/KernelSyntaxExamples/KernelSyntaxExamples.csproj
+++ b/dotnet/samples/KernelSyntaxExamples/KernelSyntaxExamples.csproj
@@ -41,7 +41,6 @@
-