Class IAzureBlobProviderExtensions
Extension methods for IAzureBlobProvider.
Inheritance
System.Object
IAzureBlobProviderExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.Abstractions.dll
Syntax
public static class IAzureBlobProviderExtensions
Methods
View SourceGetBlobStringAndHashAsync(IAzureBlobProvider, Uri)
Downloads the blob into a string and a hash value.
Declaration
public static async Task<(string Contents, byte[] Hash)> GetBlobStringAndHashAsync(this IAzureBlobProvider self, Uri blobUri)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | self | The Azure blob provider being extended. |
System.Uri | blobUri | The absolute blob URI. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.String, System.Byte[]>> | The contents of the blob as a string and hash value. |
GetBlobStringAsync(IAzureBlobProvider, Uri)
Downloads the blob into a string.
Declaration
public static async Task<string> GetBlobStringAsync(this IAzureBlobProvider self, Uri blobUri)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | self | The Azure blob provider being extended. |
System.Uri | blobUri | The absolute blob URI. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | The contents of the blob as a string. |
WriteBlobStringAsync(IAzureBlobProvider, Uri, String)
Uploads the string to the given blob URI.
Declaration
public static async Task WriteBlobStringAsync(this IAzureBlobProvider self, Uri blobUri, string content)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | self | The Azure blob provider being extended. |
System.Uri | blobUri | The absolute blob URI. |
System.String | content | The contents of the blob as a string. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |