Skip to content

Commit

Permalink
Get rid of the PollyTestClient project (#52)
Browse files Browse the repository at this point in the history
* Delete PollyTestClient

* Remove reference from azure websites page
  • Loading branch information
peter-csala committed Oct 6, 2023
1 parent c6154cd commit 906273c
Show file tree
Hide file tree
Showing 31 changed files with 2 additions and 2,586 deletions.
6 changes: 0 additions & 6 deletions Polly-Samples.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PollyDemos", "PollyDemos\Po
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PollyTestClientConsole", "PollyTestClientConsole\PollyTestClientConsole.csproj", "{A724DE86-8F09-4EF6-BF26-289C28189C53}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PollyTestClient", "PollyTestClient\PollyTestClient.csproj", "{B8BCD1D9-3C09-4320-A2F0-8342B2D657F1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PollyTestClientWpf", "PollyTestClientWpf\PollyTestClientWpf.csproj", "{89432E40-AEB5-4020-AC43-E8BB9CAC6AD6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PollyTestWebApi", "PollyTestWebApi\PollyTestWebApi.csproj", "{ACA3DD92-9D4E-4BDF-ACFE-79822882103E}"
Expand All @@ -35,10 +33,6 @@ Global
{ACA3DD92-9D4E-4BDF-ACFE-79822882103E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ACA3DD92-9D4E-4BDF-ACFE-79822882103E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ACA3DD92-9D4E-4BDF-ACFE-79822882103E}.Release|Any CPU.Build.0 = Release|Any CPU
{B8BCD1D9-3C09-4320-A2F0-8342B2D657F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B8BCD1D9-3C09-4320-A2F0-8342B2D657F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B8BCD1D9-3C09-4320-A2F0-8342B2D657F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B8BCD1D9-3C09-4320-A2F0-8342B2D657F1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
5 changes: 1 addition & 4 deletions PollyDemos/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ public static class Configuration
/// The root Polly Samples web API site address.
/// </summary>
public const string WEB_API_ROOT = "https://localhost:44307";

// A variant of this is also deployed at
//public const string WEB_API_ROOT = "http://pollytestapp.azurewebsites.net";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public override void Execute(CancellationToken cancellationToken, IProgress<Demo

try
{
// Retry the following call according to the strategy.
retryStrategy.Execute(outerToken =>
{
// This code is executed within the retry strategy.
Expand Down
2 changes: 1 addition & 1 deletion PollyDemos/Sync/SyncDemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ protected string IssueRequestAndProcessResponse(HttpClient client, CancellationT
{
// Make a request and get a response
var url = $"{Configuration.WEB_API_ROOT}/api/values/{TotalRequests}";
var response = client.Send(new HttpRequestMessage(HttpMethod.Get, url), cancellationToken);
using var response = client.Send(new HttpRequestMessage(HttpMethod.Get, url), cancellationToken);

// Read response's body
using var stream = response.Content.ReadAsStream(cancellationToken);
Expand Down
16 changes: 0 additions & 16 deletions PollyTestClient/Configuration.cs

This file was deleted.

137 changes: 0 additions & 137 deletions PollyTestClient/LimitedConcurrencyLevelTaskScheduler.cs

This file was deleted.

15 changes: 0 additions & 15 deletions PollyTestClient/PollyTestClient.csproj

This file was deleted.

72 changes: 0 additions & 72 deletions PollyTestClient/Program.cs

This file was deleted.

64 changes: 0 additions & 64 deletions PollyTestClient/Samples/AsyncDemo00_NoPolicy.cs

This file was deleted.

Loading

0 comments on commit 906273c

Please sign in to comment.