jpdillingham / Soulseek.NET

A .NET Standard client library for the Soulseek network.
GNU General Public License v3.0
177 stars 23 forks source link

Add an option to control how upload input stream seeking works #766

Closed jpdillingham closed 1 year ago

jpdillingham commented 1 year ago

TransferOptions now includes SeekInputStreamAutomatically, which defaults to true. When true this option will automatically seek the given input stream for uploads to the correct offset, which is the same behavior that's always been present.

Setting SeekInputStreamAutomatically to false won't seek, and whatever is supplying the input stream will need to seek itself, using the new offset value added in #765

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication