https://github.com/bryanwilhite/songhay.cloud.blobstorage
Azure BLOB Storage Repositories for JSON files in the Cloud
https://github.com/bryanwilhite/songhay.cloud.blobstorage
azure-blob azure-storage io repository
Last synced: 8 months ago
JSON representation
Azure BLOB Storage Repositories for JSON files in the Cloud
- Host: GitHub
- URL: https://github.com/bryanwilhite/songhay.cloud.blobstorage
- Owner: BryanWilhite
- License: mit
- Created: 2017-10-27T03:33:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T09:03:52.000Z (almost 3 years ago)
- Last Synced: 2024-12-31T03:15:19.902Z (9 months ago)
- Topics: azure-blob, azure-storage, io, repository
- Language: C#
- Homepage:
- Size: 1.73 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Songhay.Cloud.BlobStorage
[](https://songhay.visualstudio.com/SonghaySystem/_build/latest?definitionId=17&branchName=master)
`Songhay.Cloud.BlobStorage` [[Nuget](https://www.nuget.org/packages/Songhay.Cloud.BlobStorage/2.0.0)] is a commitment to `WindowsAzure.Storage` [[NuGet](https://www.nuget.org/packages/WindowsAzure.Storage/)], building upon it to define repositories that turn a container of JSON files into a repository (of the “[repository pattern](https://www.infragistics.com/community/blogs/dhananjay_kumar/archive/2016/03/07/how-to-implement-the-repository-pattern-in-asp-net-mvc-application.aspx)”).
The `AzureBlobContentRepository` [class](./Songhay.Cloud.BlobStorage/Repositories/AzureBlobContentRepository.cs) is a wrapper for [BLOBs](https://en.wikipedia.org/wiki/Binary_large_object), featuring `CloudBlob.DownloadToStreamAsync()` [[docs](https://docs.microsoft.com/en-us/dotnet/api/microsoft.windowsazure.storage.blob.cloudblob.downloadtostreamasync?view=azure-dotnet)].
The `AzureBlobRepository` [class](./Songhay.Cloud.BlobStorage/Repositories/AzureBlobRepository.cs) is a wrapper for BLOBs that are serialized JSON that hydrate into the expected `TEntity`.
The `TaggedJObjectRepository` [class](./Songhay.Cloud.BlobStorage/Repositories/TaggedJObjectRepository.cs) is also a wrapper for BLOBs in a container but these objects hydrate into the general-purpose `JObject` [from Newtonsoft](https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_Linq_JObject.htm). The “tagged” JObject is arbitrary JSON that has one property that serves as a primitive, primary key. See the `TaggedJObjectTest` [suite](./Songhay.Cloud.BlobStorage.Tests/TaggedJObjectTest.cs) as additional documentation.
[@BryanWilhite](https://twitter.com/bryanwilhite)