Skip to content

Code and languages

  • About
  • Privacy Policy

design patterns

Progress Reporting for Streams

December 1, 2021July 15, 2021 by Thomas Bøgholm
ProgressReportingStream diagram

Did you ever want to report progress when reading or writing streams in C#? You could of course do reporting manually, when issuing a read or write. This would of course be cumbersome and error prone. But what if the stream you want to monitor is read from or written to by someone else, such … Read more

Categories .NET, Design, HOWTO Tags .net, c#, decorator, design patterns, Stream Leave a comment

Recent Posts

  • C#11preview: Type-safe interchangeable units
  • C#11pre: static abstract interface members
  • XUnit: Using TheoryData with Theory
  • Mimicking Delegates in C# with GOF Observers
  • XUnit 2.4.2-pre: Multiple asserts in one test

Recent Comments

  • DHeeraj on Pruning recent projects in Start Page of Visual Studio 2019: Open recent
  • David on Pruning recent projects in Start Page of Visual Studio 2019: Open recent

Archives

  • December 2021
  • November 2021
  • July 2021
  • June 2021

Categories

  • .NET
  • c#11
  • C#preview
  • Design
  • design patterns
  • Fix
  • Hack
  • HOWTO
  • OOP
  • Testing
  • Tool
  • Uncategorized
  • UnitTesting
  • Workaround
  • XUnit

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2023 Code and languages • Built with GeneratePress