-
No results found.
Try your search with a different keyword or use * as a wildcard.
AzurePictureService.cs
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
using Microsoft.AspNetCore.Http;
using Nop.Core;
using Nop.Core.Caching;
using Nop.Core.Configuration;
using Nop.Core.Domain.Catalog;
using Nop.Core.Domain.Media;
using Nop.Core.Infrastructure;
using Nop.Data;
using Nop.Services.Catalog;
using Nop.Services.Configuration;
using Nop.Services.Logging;
using Nop.Services.Seo;
namespace Nop.Services.Media;
///
/// Picture service for Windows Azure
///
public partial class AzurePictureService : PictureService
{
#region Fields
protected static BlobContainerClient _blobContainerClient;
protected static BlobServiceClient _blobServiceClient;
protected static bool _azureBlobStorageAppendContainerName;
protected static bool _isInitialized;
protected static string _azureBlobStorageConnectionString;
protected static string _azureBlobStorageContainerName;
protected static string _azureBlobStorageEndPoint;
protected readonly IStaticCacheManager _staticCacheManager;
protected readonly object _locker = new();
#endregion
#region Ctor
public AzurePictureService(AppSettings appSettings,
IDownloadService downloadService,
IHttpContextAccessor httpContextAccessor,
ILogger logger,
INopFileProvider fileProvider,
IProductAttributeParser productAttributeParser,
IProductAttributeService productAttributeService,
IRepository