Skip to content

Conversation

@chrisg32
Copy link

@chrisg32 chrisg32 commented Dec 8, 2025

In order to make use of checksums from the Nuget package and without the need to recompile the project I propose moving away from the precompiler directive and instead use inheritance to enable the checksum.

This PR introduces the AzureBlobChecksumTusStore class which simply inherits from AzureBlobTusStore and implements ITusChecksumStore. The end use can the enable the checksum extension by using AzureBlobChecksumTusStore instead of AzureBlobTusStore.

TusDotNet's StoreAdapter will test the provided store for extension capability. Since C# is nominally typed, AzureBlobTusStore won't support checksums but AzureBlobChecksumTusStore will.

Documentation has been updated to reflect this change.

I appreciate your work on this package so far. Please let me know of any changes you would like.

Introduces AzureBlobChecksumTusStore, inheriting from AzureBlobTusStore and implementing ITusChecksumStore. This refactors checksum support into a dedicated class, removing conditional compilation for ITusChecksumStore from AzureBlobTusStore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant