Building your microservice – part one

In our first example, we are going to manually wrap the Windows FileSystemWatcher object to do what we want. This will give us ultimate control over the object and the process. This work was originally done by Mr. Peter Meinl, and a big thanks goes out to him to allow us to use his work in this book. You can check out his blog at https://petermeinl.wordpress.com/.

Here's what we hope to accomplish in this chapter:

Architecture of classes: Buffering and Recovering FSW

The first class we will provide is the BufferingFileSystemWatcher. This object:

  • Buffers FileSystemWatcher events in a BlockingCollection ...

Get Hands-On Microservices with C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.