- This project provides a CLI to run a Polly demo.
flowchart LR
console{{PollyTestClientConsole}}
wpf{{PollyTestClientWPF}}
lib>PollyDemos]
api[/PollyTestWebApi\]
style console stroke:#0f0
console -- uses --> lib
wpf -- uses --> lib
lib -- invokes --> api
- It lets you start, stop and re-run any demo.
- While the demo is running it prompts the logs.
- To stop the demo press any key.
- When you stop the demo you can scrutinize the logs and check the statistics.
- To go back to the menu press any key after you assessed the prompted messages.
- The
Program.cs
is the main entry point. - It creates the menu items and pass them to the
ConsoleMenu
. - We suggest to run the demos in the same order as they are defined.
- From the
PollySamples
directory:
dotnet run --project PollyTestClientConsole/PollyTestClientConsole.csproj
- From the
PollyTestClientConsole
directory:
dotnet run
Important
Run the PollyTestWebApi
project as well
Please make sure that PollyTestWebApi
is also running.
Otherwise the demos will not work properly (you will see connection refused messages).