Show / Hide Table of Contents

Class IAzureBlobProviderExtensions

Extension methods for IAzureBlobProvider.

Inheritance
object
IAzureBlobProviderExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.Blobs.Abstractions.dll
Syntax
public static class IAzureBlobProviderExtensions

Methods

View Source

GetBlobStreamAndIdAsync(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.

View Source

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.

View Source

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.

View Source

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.

View Source

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
  • View Source
In this article
Back to top Generated by DocFX