{"id":22350804,"url":"https://github.com/thsdmfwns/TusSharp","last_synced_at":"2025-07-30T07:31:31.816Z","repository":{"id":205012178,"uuid":"683906417","full_name":"thsdmfwns/TusSharp","owner":"thsdmfwns","description":"Tus client for .net","archived":false,"fork":false,"pushed_at":"2023-09-19T05:21:54.000Z","size":252,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-12T23:42:08.355Z","etag":null,"topics":["c-sharp","client","resumable-upload","tus","tus-protocol","upload"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thsdmfwns.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-28T03:16:55.000Z","updated_at":"2023-11-02T03:40:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"b087b657-5d42-435d-8586-922c10d0e308","html_url":"https://github.com/thsdmfwns/TusSharp","commit_stats":null,"previous_names":["thsdmfwns/tussharp","thsdmfwns/blazor.tus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thsdmfwns/TusSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thsdmfwns%2FTusSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thsdmfwns%2FTusSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thsdmfwns%2FTusSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thsdmfwns%2FTusSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thsdmfwns","download_url":"https://codeload.github.com/thsdmfwns/TusSharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thsdmfwns%2FTusSharp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266782407,"owners_count":23983316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","client","resumable-upload","tus","tus-protocol","upload"],"created_at":"2024-12-04T12:11:01.944Z","updated_at":"2025-07-30T07:31:31.521Z","avatar_url":"https://github.com/thsdmfwns.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tus#\n\n\u003cimg alt=\"Tus logo\" src=\"https://github.com/tus/tus.io/blob/main/public/images/tus1.png?raw=true\" width=\"30%\" align=\"right\" /\u003e\n\n\u003e **tus** is a protocol based on HTTP for _resumable file uploads_. Resumable\n\u003e means that an upload can be interrupted at any moment and can be resumed without\n\u003e re-uploading the previous data again. An interruption may happen willingly, if\n\u003e the user wants to pause, or by accident in case of an network issue or server\n\u003e outage.\n\nTus# is a simple and fast **.net** client for the [tus resumable upload protocol](http://tus.io) and can be used inside **.net applications**.\n\n**Protocol version:** 1.0.0\n\n\n## Example\n\n\n```c#\nusing TusSharp;\n\nvar client = new TusClient();\n//Create file stream\nconst string filePath = \"/path/to/test.mp4\";\nusing var stream = File.OpenRead(filePath);\nvar fileInfo = new FileInfo(filePath);\n//Create new option\nvar opt = new TusUploadOption()\n{\n    EndPoint = new Uri(\"http://localhost:1080/files\"),\n    ChunkSize = 1 * 1024 * 1024, //1MB\n    RetryDelays = new List\u003cint\u003e{0, 3000, 5000, 10000, 20000},\n    MetaData = new Dictionary\u003cstring, string\u003e()\n    {\n        {\"filename\", fileInfo.Name}\n    },\n    OnCompleted = () =\u003e\n    {\n        Console.WriteLine(\"completed upload \\n\");\n    },\n    OnFailed = (originalResponseMsg, originalRequestMsg, errMsg, exception) =\u003e\n    {\n        Console.WriteLine(\"upload failed beacuse : {errMsg} \\n\");\n    },\n    OnProgress = (chunkSize, uploadedSize, totalSize) =\u003e\n    {\n        var progressPercentage = (double)uploadedSize / totalSize * 100;\n        Console.WriteLine($\"upload | chunkSize : {chunkSize} | uploadedSize : {uploadedSize} | total : {totalSize} |  {progressPercentage:F2}\\n\");\n    }\n};\n\n//Create upload with option and FileStream\nusing var upload = client.Upload(opt, stream);\n\n//start the upload\nawait upload.Start();   \n```\n## Dependency\n\n[System.IO.Pipelines](https://www.nuget.org/packages/System.IO.Pipelines/)\n\n## License\n\nThis project is licensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthsdmfwns%2FTusSharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthsdmfwns%2FTusSharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthsdmfwns%2FTusSharp/lists"}