GroupDocs.Viewer.UI.Api.AzureBlob.Storage containing Microsoft Azure file-storage implementation that can be used with GroupDocs.Viewer.UI.Api see https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET-UI for more details.
Install
| Product | Versions |
|---|---|
| .NET |
README
GroupDocs.Viewer.UI.Api.AzureBlob.Storage
GroupDocs.Viewer.UI.Api.AzureBlob.Storage is a Microsoft Azure Blob Storage implementation that can be used with GroupDocs.Viewer.UI.Api. It provides seamless integration with Azure Blob Storage for storing and retrieving documents in your GroupDocs.Viewer.UI application.
Installation
To use Azure Blob Storage in your ASP.NET Core project:
- Add the required package to your project:
dotnet add package GroupDocs.Viewer.UI.Api.AzureBlob.Storage
- Configure Azure Blob Storage in your
Startupclass:
using Azure.Storage.Blobs;
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddGroupDocsViewerUI();
builder.Services
.AddControllers()
.AddGroupDocsViewerSelfHostApi()
.AddAzureBlobStorage(options =>
{
options.AccountName = "your-storage-account-name";
options.AccountKey = "your-storage-account-key";
options.ContainerName = "your-container-name";
options.ClientOptions = new BlobClientOptions
{
// Configure additional Azure Blob client settings if needed
};
});
var app = builder.Build();
app
.UseRouting()
.UseEndpoints(endpoints =>
{
endpoints.MapGroupDocsViewerUI(options =>
{
options.UIPath = "/viewer";
options.ApiEndpoint = "/viewer-api";
});
endpoints.MapGroupDocsViewerApi(options =>
{
options.ApiPath = "/viewer-api";
});
});
await app.RunAsync();
Configuration Options
The Azure Blob Storage implementation supports the following configuration options:
AccountName(Required): The name of your Azure Storage account.AccountKey(Required): The access key for your Azure Storage account.ContainerName(Required): The name of the blob container in your storage account.ClientOptions(Optional): Additional configuration for the Azure Blob client.
Azure Storage Connection String
Alternatively, you can use a connection string instead of separate account name and key:
options.ConnectionString = "DefaultEndpointsProtocol=https;AccountName=your-storage-account-name;AccountKey=your-storage-account-key;EndpointSuffix=core.windows.net";
License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.