O'Reilly logo

Hands-On Microservices with C# by Matt R. Cole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required