Tus Dotnet Client Save

tus.io Client for .Net

Project README

tus-dotnet-client

.Net client for tus.io Resumable File Upload protocol.

Features

  • tus protocol v1.0.0
  • protocol extension supported: Creation, Termination
  • no external dependencies
  • upload progress events
  • .net 4.0 / .net standard 2.0 / .net core 2.0 / .net core 3.1
  • used in production for .net 4.0 desktop app
  • small enought to copy into your project

Usage

See TusClientConsole for usage and a test suite of sorts.

Dim tc As New TusClient.TusClient()
AddHandler tc.Uploading, Sub(bytesTransferred As Integer, bytesTotal As Integer)
                             Dim perc As Decimal = bytesTransferred / bytesTotal * 100.0
                             Console.WriteLine("Up {0:0.00}% {1} of {2}", perc, bytesTransferred, bytesTotal)
                         End Sub

Dim fileURL = tc.Create(ServerURL, testfile)
tc.Upload(fileURL, testfile)
tc.Delete(fileURL)

Alternatives

If async support or Nuget is important to you check out these other great dotnet tus clients:

License

MIT

Open Source Agenda is not affiliated with "Tus Dotnet Client" Project. README Source: gerdus/tus-dotnet-client
Stars
38
Open Issues
0
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating