This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
`IProgress<T>` in C# is an interface provided by the .NET Framework to report progress in an asynchronous operation. It allows a producer (usually a background task) to communicate progress updates to a consumer (often the UI thread or another monitoring task). | |
This setup ensures that the progress reporting mechanism is thread-safe and that the consumer of the progress updates can safely update the UI or other state based on the progress. | |
*/ | |
// var progress = new Progress<(long count, List<string> files)>(ReportProgress); | |
var progress = new Progress<(long count, List<string> files)>(); | |
progress.ProgressChanged += (_, data) => { | |
Console.WriteLine($"{data.count} files read. Last file: {data.files.Last()}"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Blazor WASM to GitHub Pages | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy-to-github-pages: | |
runs-on: ubuntu-latest | |
steps: |