forked from SixLabors/ImageSharp.Web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAzureBlobStorageImageProviderOptions.cs
More file actions
41 lines (35 loc) · 1.55 KB
/
AzureBlobStorageImageProviderOptions.cs
File metadata and controls
41 lines (35 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using Azure.Storage.Blobs;
namespace SixLabors.ImageSharp.Web.Providers.Azure;
/// <summary>
/// Configuration options for the <see cref="AzureBlobStorageImageProvider"/> provider.
/// </summary>
public class AzureBlobStorageImageProviderOptions
{
/// <summary>
/// Gets or sets the collection of blob container client options.
/// </summary>
public ICollection<AzureBlobContainerClientOptions> BlobContainers { get; set; } = new HashSet<AzureBlobContainerClientOptions>();
}
/// <summary>
/// Represents a single Azure Blob Storage connection and container.
/// </summary>
public class AzureBlobContainerClientOptions
{
/// <summary>
/// Gets or sets a custom Azure BlobServiceClient provider
/// </summary>
public Func<AzureBlobContainerClientOptions, IServiceProvider, BlobContainerClient>? BlobContainerClientProvider { get; set; } = null!;
/// <summary>
/// Gets or sets the Azure Blob Storage connection string.
/// <see href="https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string."/>
/// </summary>
public string? ConnectionString { get; set; }
/// <summary>
/// Gets or sets the Azure Blob Storage container name.
/// Must conform to Azure Blob Storage container naming guidlines.
/// <see href="https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names"/>
/// </summary>
public string? ContainerName { get; set; }
}