Skip to main content
Namespace: Numa.Services
Related Interfaces: IDocumentStorageService.cs

Fields

Field NameTypeDescription
_connectionStringstringConnection string to Azure Storage

Constructor

public DocumentStorageService( string azureStorageConnectionString )
{
    _connectionString = azureStorageConnectionString;
}

Properties

DocumentStorageService does not have any properties.

Methods

Method NameDescriptionParametersReturn Type
GetBlobContainerClientInstantiates a client for a specific blob containerstringBlobContainerClient
UploadBlobAsyncAttempts to upload a blob to a specific blob containerstring, string, StreamTask<(bool IsSuccess, string ErrorMessage)>

IDocumentStorageService.cs

namespace Numa.Interfaces
{
    public interface IDocumentStorageService
    {
        Task<(bool IsSuccess, string ErrorMessage)> UploadBlobAsync( string containerName, string fileName, Stream stream );
    }
}