Class IAzureBlobProviderExtensions
Extension methods for IAzureBlobProvider.
Inherited Members
Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.Blobs.Abstractions.dll
Syntax
public static class IAzureBlobProviderExtensions
Methods
View SourceGetBlobStreamAndIdAsync(IAzureBlobProvider, Uri)
Retrieves the blob stream for downloading and a content ID.
Declaration
public static Task<(Stream Stream, long Id)> GetBlobStreamAndIdAsync(this IAzureBlobProvider self, Uri blobUri)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | self | The Azure blob provider being extended. |
Uri | blobUri | The absolute blob URI. |
Returns
Type | Description |
---|---|
Task<(Stream Stream, long Id)> | The stream for downloading and a content ID. |
GetBlobStringAndHashAsync(IAzureBlobProvider, Uri)
Downloads the blob into a string and a hash value.
Declaration
public static Task<(string Contents, byte[] Hash)> GetBlobStringAndHashAsync(this IAzureBlobProvider self, Uri blobUri)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | self | The Azure blob provider being extended. |
Uri | blobUri | The absolute blob URI. |
Returns
Type | Description |
---|---|
Task<(string Contents, byte[] Hash)> | The contents of the blob as a string and hash value. |
GetBlobStringAndIdAsync(IAzureBlobProvider, Uri)
Downloads the blob into a string and a ID value.
Declaration
public static Task<(string Contents, long Id)> GetBlobStringAndIdAsync(this IAzureBlobProvider self, Uri blobUri)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | self | The Azure blob provider being extended. |
Uri | blobUri | The absolute blob URI. |
Returns
Type | Description |
---|---|
Task<(string Contents, long Id)> | The contents of the blob as a string and ID value. |
GetBlobStringAsync(IAzureBlobProvider, Uri)
Downloads the blob into a string.
Declaration
public static Task<string> GetBlobStringAsync(this IAzureBlobProvider self, Uri blobUri)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | self | The Azure blob provider being extended. |
Uri | blobUri | The absolute blob URI. |
Returns
Type | Description |
---|---|
Task<string> | The contents of the blob as a string. |
WriteBlobStringAsync(IAzureBlobProvider, Uri, string)
Uploads the string to the given blob URI.
Declaration
public static Task WriteBlobStringAsync(this IAzureBlobProvider self, Uri blobUri, string content)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | self | The Azure blob provider being extended. |
Uri | blobUri | The absolute blob URI. |
string | content | The contents of the blob as a string. |
Returns
Type | Description |
---|---|
Task |