Example #1
0
 internal DiskWriter(Func <ITorrentFileInfo, FileAccess, Stream> streamCreator, int maxOpenFiles)
 {
     StreamCache = new FileStreamBuffer(streamCreator, maxOpenFiles);
     Limiter     = new SemaphoreSlim(maxOpenFiles);
 }