You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there,
I wanted to implement a simple progress-tracking and noticed that the logic to read the file, and write it to the request-stream is implemented several times, slightly differently, violating e.g. DRY or SoC.
Hello there,
I wanted to implement a simple progress-tracking and noticed that the logic to read the file, and write it to the request-stream is implemented several times, slightly differently, violating e.g. DRY or SoC.
MultiPartStreamer
class (here)HttpRequest
class (here).If you agree that this is a problem, how would you solve it?
My proposals:
IFileDataProvider
with a simple signature likeWriteFileToStream(string path, Stream requestStream)
Action<string, Stream, long> streamWriter
I see the following advantages of this approach:
The text was updated successfully, but these errors were encountered: