Reusable code snippets with minimal dependency.
Linear Block Id Generator - A sequence Id generator which works similarly with the Hi-Lo algorithm. A block of sequence numbers are reserved to the client by given sequence length and a Hi number returned by the database server. This article explains this in detail http://literatejava.com/hibernate/linear-block-allocator-a-superior-alternative-to-hilo/.
WriteFileAsync - Samples for writing a stream or text to file asynchronously.
Resources:
- Sacha Barber's blog
- Szymon Kulec's blog
- Microsoft's docs
- Github Source
- Michael Shpilt's blob - haven't gone thru this one but looks promising