public MarketingModulePromotionController( IPromotionService promotionService, ICouponService couponService, IMarketingPromoEvaluator promoEvaluator, IPromotionSearchService promoSearchService, IUserNameResolver userNameResolver, IPushNotificationManager notifier, IBlobStorageProvider blobStorageProvider, CsvCouponImporter csvCouponImporter, Func <IMarketingRepository> repositoryFactory, ICouponSearchService couponSearchService, IAuthorizationService authorizationService) { _promotionService = promotionService; _couponService = couponService; _promoEvaluator = promoEvaluator; _promoSearchService = promoSearchService; _userNameResolver = userNameResolver; _notifier = notifier; _blobStorageProvider = blobStorageProvider; _csvCouponImporter = csvCouponImporter; _repositoryFactory = repositoryFactory; _couponSearchService = couponSearchService; _authorizationService = authorizationService; }
/// <summary> /// Writes logs to a blob /// </summary> /// <param name="configuration">Configuration reference</param> /// <param name="blobStorage">Valid blob storage reference</param> /// <param name="documentId">ID of the document to append to</param> /// <param name="format">Optional format string</param> /// <returns></returns> public static ILogConfiguration StorageAppendBlob(this IWriterConfiguration configuration, IBlobStorageProvider blobStorage, string documentId, string format = null) { return(configuration.Custom(new BlobStorageLogWriter(blobStorage, documentId, format))); }
public BlobStorageMultipartProvider(IBlobStorageProvider blobProvider, IBlobUrlResolver blobUrlResolver, string rootPath) { _rootPath = rootPath; _blobProvider = blobProvider; _blobUrlResolver = blobUrlResolver; BlobInfos = new List <BlobInfo>(); }
public ProductExportPagedDataSource(IBlobStorageProvider blobStorageProvider, IItemService itemService, ICatalogSearchService catalogSearchService, IBlobUrlResolver blobUrlResolver, ProductExportDataQuery dataQuery) : base(dataQuery) { _blobStorageProvider = blobStorageProvider; _itemService = itemService; _catalogSearchService = catalogSearchService; _blobUrlResolver = blobUrlResolver; }
public static Task <BlobWithETag <T> > GetBlobAsync <T>(this IBlobStorageProvider provider, string containerName, string blobName, IDataSerializer serializer = null) { return(provider.GetBlobAsync(containerName, blobName, typeof(T), CancellationToken.None, serializer) .Then(b => b == null ? null : new BlobWithETag <T> { Blob = (T)b.Blob, ETag = b.ETag })); }
public CatalogExportImport( ICatalogSearchService catalogSearchService, ICatalogService catalogService, ICategoryService categoryService, IItemService itemService, IPropertyService propertyService, IBlobStorageProvider blobStorageProvider, IAssociationService associationService, ISettingsManager settingsManager, IProperyDictionaryItemSearchService propertyDictionarySearchService, IProperyDictionaryItemService propertyDictionaryService ) { _blobStorageProvider = blobStorageProvider; _catalogSearchService = catalogSearchService; _catalogService = catalogService; _categoryService = categoryService; _itemService = itemService; _propertyService = propertyService; _associationService = associationService; _settingsManager = settingsManager; _propertyDictionarySearchService = propertyDictionarySearchService; _propertyDictionaryService = propertyDictionaryService; _serializer = new JsonSerializer { ReferenceLoopHandling = ReferenceLoopHandling.Ignore, Formatting = Formatting.Indented, NullValueHandling = NullValueHandling.Ignore }; }
public ExportImportController(ICatalogService catalogService, IPushNotificationManager pushNotificationManager, IAuthorizationService authorizationService, ICurrencyService currencyService, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, ICsvCatalogExporter csvExporter, ICsvCatalogImporter csvImporter, IUserNameResolver userNameResolver, ISettingsManager settingsManager, IItemService itemService, ICategoryService categoryService) { _catalogService = catalogService; _notifier = pushNotificationManager; _authorizationService = authorizationService; _currencyService = currencyService; _blobStorageProvider = blobStorageProvider; _userNameResolver = userNameResolver; _settingsManager = settingsManager; _blobUrlResolver = blobUrlResolver; _itemService = itemService; _categoryService = categoryService; _csvExporter = csvExporter; _csvImporter = csvImporter; }
public MarketingModulePromotionController( IPromotionService promotionService, ICouponService couponService, IMarketingExtensionManager promotionManager, IMarketingPromoEvaluator promoEvaluator, IExpressionSerializer expressionSerializer, IPromotionSearchService promoSearchService, IUserNameResolver userNameResolver, IPushNotificationManager notifier, IBlobStorageProvider blobStorageProvider, CsvCouponImporter csvCouponImporter, ISecurityService securityService, IPermissionScopeService permissionScopeService) { _securityService = securityService; _marketingExtensionManager = promotionManager; _promotionService = promotionService; _couponService = couponService; _promoEvaluator = promoEvaluator; _expressionSerializer = expressionSerializer; _promoSearchService = promoSearchService; _userNameResolver = userNameResolver; _notifier = notifier; _blobStorageProvider = blobStorageProvider; _csvCouponImporter = csvCouponImporter; _permissionScopeService = permissionScopeService; }
public ContentIndexBuilder( IBlobStorageProvider storageProvider, ISearchProvider searchProvider) { _searchProvider = searchProvider; _storageProvider = storageProvider; }
public BlobStorageMultipartProvider(IBlobStorageProvider blobProvider, string tempPath, string folder) : base(tempPath) { _folder = folder; _blobProvider = blobProvider; BlobInfos = new List<BlobInfo>(); }
/// <summary> /// Initializes a new instance of the <see cref="CloudStorageProviders"/> class. /// </summary> /// <param name="blobStorage"> /// The BLOB storage. /// </param> /// <param name="queueStorage"> /// The queue storage. /// </param> /// <param name="tableStorage"> /// The table storage. /// </param> /// <remarks> /// </remarks> public CloudStorageProviders( IBlobStorageProvider blobStorage, IQueueStorageProvider queueStorage, ITableStorageProvider tableStorage) { this.BlobStorage = blobStorage; this.QueueStorage = queueStorage; this.TableStorage = tableStorage; }
public BlobStorageMultipartProvider(IBlobStorageProvider blobProvider, string tempPath, string folder) : base(tempPath) { _folder = folder; _blobProvider = blobProvider; BlobInfos = new List <BlobInfo>(); }
public BlobStorageProviderTest(string type) { _settings = new ConfigurationBuilder <ITestSettings>() .UseIniFile("c:\\tmp\\integration-tests.ini") .UseEnvironmentVariables() .Build(); _type = type; switch (_type) { case "azure": _provider = new AzureBlobStorageProvider( _settings.AzureStorageName, _settings.AzureStorageKey, "blobstoragetest"); break; case "azure-sas": _provider = StorageFactory.Blobs.AzureBlobStorageByContainerSasUri(_settings.AzureContainerSasUri); break; case "azure-datalakestore": //Console.WriteLine("ac: {0}, tid: {1}, pid: {2}, ps: {3}", _settings.AzureDataLakeStoreAccountName, _settings.AzureDataLakeTenantId, _settings.AzureDataLakePrincipalId, _settings.AzureDataLakePrincipalSecret); _provider = StorageFactory.Blobs.AzureDataLakeStoreByClientSecret( _settings.AzureDataLakeStoreAccountName, _settings.AzureDataLakeTenantId, _settings.AzureDataLakePrincipalId, _settings.AzureDataLakePrincipalSecret); break; case "disk-directory": _provider = StorageFactory.Blobs.DirectoryFiles(TestDir); break; case "zip": _provider = StorageFactory.Blobs.ZipFile(Path.Combine(TestDir.FullName, "test.zip")); break; case "aws-s3": _provider = new AwsS3BlobStorageProvider( _settings.AwsAccessKeyId, _settings.AwsSecretAccessKey, _settings.AwsTestBucketName); break; case "inmemory": _provider = StorageFactory.Blobs.InMemory(); break; case "azurekeyvault": _provider = StorageFactory.Blobs.AzureKeyVault( _settings.KeyVaultUri, _settings.KeyVaultCreds); break; } _bs = new BlobStorage(_provider); }
public ExportImportController(ICatalogService catalogService, IPushNotificationManager pushNotificationManager, ICommerceService commerceService, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, ICsvCatalogExporter csvExporter, ICsvCatalogImporter csvImporter, ISecurityService securityService, IPermissionScopeService permissionScopeService, IUserNameResolver userNameResolver, ISettingsManager settingsManager) { _securityService = securityService; _permissionScopeService = permissionScopeService; _catalogService = catalogService; _notifier = pushNotificationManager; _commerceService = commerceService; _blobStorageProvider = blobStorageProvider; _userNameResolver = userNameResolver; _settingsManager = settingsManager; _blobUrlResolver = blobUrlResolver; _csvExporter = csvExporter; _csvImporter = csvImporter; }
/// <summary> /// Creates an instance of EventHub receiver /// </summary> /// <param name="connectionString">Event hub connection string</param> /// <param name="hubPath">Entity path</param> /// <param name="partitionIds">When specified, listens only on specified partition(s), otherwise all partitions will be used</param> /// <param name="consumerGroupName">When not specified uses default consumer group</param> /// <param name="stateStorage">When specified uses this storage for persisting the state i.e. will be able to continue from /// where it left next time it runs</param> public AzureEventHubReceiver(string connectionString, string hubPath, IEnumerable <string> partitionIds = null, string consumerGroupName = null, IBlobStorageProvider stateStorage = null) { if (connectionString == null) { throw new ArgumentNullException(nameof(connectionString)); } if (hubPath == null) { throw new ArgumentNullException(nameof(hubPath)); } _partitionIds = partitionIds == null ? null : new HashSet <string>(partitionIds); var builder = new EventHubsConnectionStringBuilder(connectionString) { EntityPath = hubPath }; _hubClient = EventHubClient.CreateFromConnectionString(builder.ToString()); if (partitionIds != null) { _partitionIds.AddRange(_partitionIds); } _consumerGroupName = consumerGroupName; _state = new EventHubStateAdapter(new BlobStorage(stateStorage)); }
public async Task BlobStorage_sample1() { IBlobStorageProvider storage = StorageFactory.Blobs.AzureBlobStorage( _settings.AzureStorageName, _settings.AzureStorageKey, "container name"); //upload it string content = "test content"; using (var s = new MemoryStream(Encoding.UTF8.GetBytes(content))) { await storage.WriteAsync("someid", s); } //read back using (var s = new MemoryStream()) { using (Stream ss = await storage.OpenReadAsync("someid")) { await ss.CopyToAsync(s); //content is now "test content" content = Encoding.UTF8.GetString(s.ToArray()); } } }
public FilesUploadCommandHandler( IBlobStorageProvider storageProvider, IDatabaseProvider databaseProvider) { this.storageProvider = storageProvider; this.databaseProvider = databaseProvider; }
public BlobStorageMultipartProvider(IBlobStorageProvider blobProvider, IBlobUrlResolver blobUrlResolver, string rootPath) { _rootPath = rootPath; _blobProvider = blobProvider; _blobUrlResolver = blobUrlResolver; BlobInfos = new List<BlobInfo>(); }
public SqlServerWithExternalBlobDataProvider(string connectionString) : base(connectionString) { _blobSetLocks = new LockSet(); var externalBlobStorageProviderType = Configuration.Settings.Media.ExternalBlobStorageProviderType; if (string.IsNullOrWhiteSpace(externalBlobStorageProviderType)) { Log.Info("ExternalBlobStorageProviderType isn't configured. So, using the Sitecore default provider.", this); _externalBlobStorageProviderConfigured = false; return; } try { Log.Info($"Initializing ExternalBlobStorageProviderType using {externalBlobStorageProviderType}", this); _blobStorageProvider = ReflectionUtil.CreateObject(externalBlobStorageProviderType) as IBlobStorageProvider; if (_blobStorageProvider == null) { Log.Error($"Unable to create IBlobStorageProvider of type {externalBlobStorageProviderType}. So, using the Sitecore default provider.", this); _externalBlobStorageProviderConfigured = false; return; } _externalBlobStorageProviderConfigured = true; } catch (Exception ex) { Log.Error($"Unable to initialize ExternalBlobStorageProviderType {externalBlobStorageProviderType}. So, using the Sitecore default provider.", ex, this); _externalBlobStorageProviderConfigured = false; } }
public SimpleMyDocumentSet(IBlobStorageProvider blobs) : base(blobs, key => new BlobLocation("document-container", key.ToString()), () => new BlobLocation("document-container", ""), new CloudFormatter()) { }
public CloudLogger(IBlobStorageProvider blobStorage, string source) { _blobStorage = blobStorage; _source = source; LogLevelThreshold = LogLevel.Min; }
public CatalogModuleExportImportController(ICatalogService catalogService, INotifier notifier, ISettingsManager settingsManager, IBlobStorageProvider blobStorageProvider) { _catalogService = catalogService; _notifier = notifier; _settingsManager = settingsManager; _blobStorageProvider = blobStorageProvider; }
public CsvExporter(IPushNotificationManager pushNotifier, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver) { _pushNotifier = pushNotifier; _blobStorageProvider = blobStorageProvider; _blobUrlResolver = blobUrlResolver; }
public BlobService( IBlobStorageProvider currentBlobStorageProvider, IBlobStorageProvider previousBlobStorageProvider) { _currentBlobStorageProvider = currentBlobStorageProvider; _previousBlobStorageProvider = previousBlobStorageProvider; }
public MarketingModulePromotionController( IPromotionService promotionService, ICouponService couponService, IMarketingPromoEvaluator promoEvaluator, IPromotionSearchService promoSearchService, IUserNameResolver userNameResolver, IPushNotificationManager notifier, IBlobStorageProvider blobStorageProvider, CsvCouponImporter csvCouponImporter, ISecurityService securityService, IPermissionScopeService permissionScopeService, Func <IMarketingRepository> repositoryFactory ) { _securityService = securityService; _promotionService = promotionService; _couponService = couponService; _promoEvaluator = promoEvaluator; _promoSearchService = promoSearchService; _userNameResolver = userNameResolver; _notifier = notifier; _blobStorageProvider = blobStorageProvider; _csvCouponImporter = csvCouponImporter; _permissionScopeService = permissionScopeService; _repositoryFactory = repositoryFactory; }
public CatalogModuleExportImportController(ICatalogService catalogService, INotifier notifier, ISettingsManager settingsManager, IBlobStorageProvider blobStorageProvider) { _catalogService = catalogService; _notifier = notifier; _settingsManager = settingsManager; _blobStorageProvider = blobStorageProvider; }
public PlatformExportImportController(IPlatformExportImportManager platformExportManager, IPushNotificationManager pushNotifier, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, ISettingsManager settingManager) { _platformExportManager = platformExportManager; _pushNotifier = pushNotifier; _blobStorageProvider = blobStorageProvider; _blobUrlResolver = blobUrlResolver; _settingsManager = settingManager; }
public InMemoryBlobService( IBlobStorageProvider currentBlobStorageProvider, IBlobStorageProvider previousBlobStorageProvider) : base(currentBlobStorageProvider, previousBlobStorageProvider) { _currentBlobStorageProvider = currentBlobStorageProvider; _previousBlobStorageProvider = previousBlobStorageProvider; }
public PlatformExportImportController(IPlatformExportImportManager platformExportManager, INotifier eventNotifier, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, IPackageService packageService) { _platformExportManager = platformExportManager; _eventNotifier = eventNotifier; _blobStorageProvider = blobStorageProvider; _blobUrlResolver = blobUrlResolver; _packageService = packageService; }
public EmployeeService( IUnitOfWork uow, ILogger <EmployeeService> logger, IBlobStorageProvider blobStorageProvider) : base(uow, logger) { _blobStorageProvider = blobStorageProvider; }
public ExportWriter(string filePath, IBlobStorageProvider blobStorageProvider, Configuration csvConfiguration, DynamicProperty[] dynamicProperties = null) { var stream = blobStorageProvider.OpenWrite(filePath); _streamWriter = new StreamWriter(stream); _csvWriter = new CsvWriter(_streamWriter, csvConfiguration); _csvWriter.Configuration.RegisterClassMap(new GenericClassMap <T>(dynamicProperties)); }
public CompressedBinaryDocumentSet( IBlobStorageProvider blobs, Func <TKey, IBlobLocation> locationOfKey, Func <IBlobLocation> commonPrefix = null) : base(blobs, locationOfKey, commonPrefix) { Serializer = this; }
public CsvCatalogExporter(IStoreService storeService, ICatalogService catalogService, ICatalogSearchService catalogSearchService, IItemService productService, IPushNotificationManager pushNotifier, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver) : base(pushNotifier, blobStorageProvider, blobUrlResolver) { _storeService = storeService; _catalogService = catalogService; _catalogSearchService = catalogSearchService; _productService = productService; }
public PlatformExportImportController(IPlatformExportImportManager platformExportManager, IPushNotificationManager pushNotifier, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, ISettingsManager settingManager) { _platformExportManager = platformExportManager; _pushNotifier = pushNotifier; _blobStorageProvider = blobStorageProvider; _blobUrlResolver = blobUrlResolver; _settingsManager = settingManager; }
public PlatformExportImportController(IPlatformExportImportManager platformExportManager, INotifier eventNotifier, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, IPackageService packageService) { _platformExportManager = platformExportManager; _eventNotifier = eventNotifier; _blobStorageProvider = blobStorageProvider; _blobUrlResolver = blobUrlResolver; _packageService = packageService; }
public BackupStoreJob(IStoreService storeService, ISettingsManager settingsManager, INotifier notifier, IBlobStorageProvider blobProvider, IBlobUrlResolver blobUrlResolver) { _storeService = storeService; _settingsManager = settingsManager; _notifier = notifier; _blobStorageProvider = blobProvider; _blobUrlResolver = blobUrlResolver; }
/// <summary> /// Initializes a new instance of the <see cref="CloudStorageProviders"/> class. /// </summary> /// <param name="blobStorage">The blob storage provider.</param> /// <param name="queueStorage">The queue storage provider.</param> /// <param name="tableStorage">The table storage provider.</param> public CloudStorageProviders( IBlobStorageProvider blobStorage, IQueueStorageProvider queueStorage, ITableStorageProvider tableStorage) { BlobStorage = blobStorage; QueueStorage = queueStorage; TableStorage = tableStorage; }
/// <summary> /// Initializes a new instance of the <see cref="CloudStorageProviders"/> class. /// </summary> /// <param name="blobStorage">The blob storage provider.</param> /// <param name="queueStorage">The queue storage provider.</param> /// <param name="tableStorage">The table storage provider.</param> public CloudStorageProviders( IBlobStorageProvider blobStorage, IQueueStorageProvider queueStorage, ITableStorageProvider tableStorage) { BlobStorage = blobStorage; QueueStorage = queueStorage; TableStorage = tableStorage; }
/// <summary> /// Initializes a new instance of the StorageCredentialsVerifier class. /// </summary> /// <param name="container">The IoC container.</param> public StorageCredentialsVerifier(IContainer container) { try { _storage = container.Resolve<IBlobStorageProvider>(); } catch (ComponentNotRegisteredException) { } catch (DependencyResolutionException) { } }
public AssemblyConfigurationUpdateService(IBlobStorageProvider blobStorage) { // NOTE: we can't use the BlobStorage as provided by the base class // as this is not available at constructur time, but we want to reset // the status as soon as possible to avoid missing any changes _assemblyLoader = new AssemblyLoader(blobStorage); _assemblyLoader.ResetUpdateStatus(); }
public AssemblyConfigurationUpdateService(IBlobStorageProvider storage) { // NOTE: we can't use the Blobs as provided by the base class // as this is not available at constructur time, but we want to reset // the status as soon as possible to avoid missing any changes _assemblyLoader = new AssemblyLoader(storage); _assemblyLoader.ResetUpdateStatus(); }
public CatalogModuleExportImportController(ICatalogService catalogService, INotifier notifier, ISettingsManager settingsManager, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, CsvCatalogExporter csvExporter, CsvCatalogImporter csvImporter) { _catalogService = catalogService; _notifier = notifier; _settingsManager = settingsManager; _blobStorageProvider = blobStorageProvider; _csvExporter = csvExporter; _csvImporter = csvImporter; _blobUrlResolver = blobUrlResolver; }
/// <summary>Full constructor.</summary> public BlobCounter(IBlobStorageProvider provider, string containerName, string blobName) { if(null == provider) throw new ArgumentNullException("provider"); if(null == containerName) throw new ArgumentNullException("containerName"); if(null == blobName) throw new ArgumentNullException("blobName"); _provider = provider; _containerName = containerName; _blobName = blobName; }
/// <summary>Full constructor.</summary> public BlobCounter(IBlobStorageProvider provider, string containerName, string blobName) { Enforce.Argument(() => provider); Enforce.Argument(() => containerName); Enforce.Argument(() => blobName); _provider = provider; _containerName = containerName; _blobName = blobName; }
/// <summary>IoC constructor.</summary> public RuntimeProviders( IBlobStorageProvider blobStorage, IQueueStorageProvider queueStorage, ITableStorageProvider tableStorage, ILog log) { BlobStorage = blobStorage; QueueStorage = queueStorage; TableStorage = tableStorage; Log = log; }
public CatalogExportImport(ICatalogSearchService catalogSearchService, ICatalogService catalogService, ICategoryService categoryService, IItemService itemService, IPropertyService propertyService, IBlobStorageProvider blobStorageProvider) { _blobStorageProvider = blobStorageProvider; _catalogSearchService = catalogSearchService; _catalogService = catalogService; _categoryService = categoryService; _itemService = itemService; _propertyService = propertyService; }
public PagesServiceImpl(Func<IContentRepository> repositoryFactory, IBlobStorageProvider blobProvider, string tempPath) { if (repositoryFactory == null) throw new ArgumentNullException("repositoryFactory"); if (blobProvider == null) throw new ArgumentNullException("blobProvider"); _repositoryFactory = repositoryFactory; _blobProvider = blobProvider; _tempPath = HostingEnvironment.MapPath("~/App_Data/Uploads/"); }
/// <summary>IoC constructor.</summary> public RuntimeProviders( IBlobStorageProvider blobStorage, IQueueStorageProvider queueStorage, ITableStorageProvider tableStorage, IRuntimeFinalizer runtimeFinalizer, Storage.Shared.Logging.ILog log) { BlobStorage = blobStorage; QueueStorage = queueStorage; TableStorage = tableStorage; RuntimeFinalizer = runtimeFinalizer; Log = log; }
public ModuleImporter(ICatalogService catalogService, ICategoryService categoryService, IItemService productService, IBlobStorageProvider blobStorageProvider, IPushNotificationManager pushNotificationManager, ICatalogSearchService searchService, IPropertyService propertyService, IItemService itemService) { _catalogService = catalogService; _categoryService = categoryService; _productService = productService; _pushNotificationManager = pushNotificationManager; _searchService = searchService; _blobStorageProvider = blobStorageProvider; _propertyService = propertyService; _itemService = itemService; }
public CatalogModuleExportImportController(ICatalogService catalogService, IPushNotificationManager pushNotificationManager, ISettingsManager settingsManager, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, CsvCatalogExporter csvExporter, CsvCatalogImporter csvImporter, ISecurityService securityService, IPermissionScopeService permissionScopeService) : base(securityService, permissionScopeService) { _catalogService = catalogService; _notifier = pushNotificationManager; _settingsManager = settingsManager; _blobStorageProvider = blobStorageProvider; _csvExporter = csvExporter; _csvImporter = csvImporter; _blobUrlResolver = blobUrlResolver; }
/// <summary>IoC constructor.</summary> public CloudInfrastructureProviders( IBlobStorageProvider blobStorage, IQueueStorageProvider queueStorage, ITableStorageProvider tableStorage, ILog log, IProvisioningProvider provisioning, IRuntimeFinalizer runtimeFinalizer) { BlobStorage = blobStorage; QueueStorage = queueStorage; TableStorage = tableStorage; Log = log; Provisioning = provisioning; RuntimeFinalizer = runtimeFinalizer; }
public CsvCatalogExportJob(ICatalogSearchService catalogSearchService, ICategoryService categoryService, IItemService productService, INotifier notifier, CacheManager cacheManager, IBlobStorageProvider blobProvider, IBlobUrlResolver blobUrlResolver, IPricingService pricingService, IInventoryService inventoryService) { _searchService = catalogSearchService; _categoryService = categoryService; _productService = productService; _notifier = notifier; _cacheManager = cacheManager; _blobStorageProvider = blobProvider; _blobUrlResolver = blobUrlResolver; _pricingService = pricingService; _inventoryService = inventoryService; }
/// <summary>IoC constructor.</summary> public CloudStorageProviders( IBlobStorageProvider blobStorage, IQueueStorageProvider queueStorage, ITableStorageProvider tableStorage, IBlobStorageProvider neutralBlobStorage, IQueueStorageProvider neutralQueueStorage, ITableStorageProvider neutralTableStorage, IBlobStorageProvider rawBlobStorage, IRuntimeFinalizer runtimeFinalizer = null) { BlobStorage = blobStorage; QueueStorage = queueStorage; TableStorage = tableStorage; NeutralBlobStorage = neutralBlobStorage; NeutralQueueStorage = neutralQueueStorage; NeutralTableStorage = neutralTableStorage; RawBlobStorage = rawBlobStorage; RuntimeFinalizer = runtimeFinalizer; }
protected BlobStorageTests(IBlobStorageProvider storage) { BlobStorage = storage; }
/// <summary> /// Initializes a new instance of the <see cref="CloudServiceScheduling"/> class. /// </summary> public CloudServiceScheduling(IBlobStorageProvider blobStorageProvider) { _blobProvider = blobStorageProvider; }
/// <summary> /// Initializes a new instance of the <see cref="CloudConfiguration"/> class. /// </summary> public CloudConfiguration(IBlobStorageProvider storage) { _blobs = storage; _runtimeSerializer = new CloudFormatter(); }
public AssetsController(IBlobStorageProvider blobProvider, IBlobUrlResolver urlResolver) { _blobProvider = blobProvider; _urlResolver = urlResolver; }
/// <summary> /// Initializes a new instance of the <see cref="CloudServices"/> class. /// </summary> public CloudServices(IBlobStorageProvider storage) { _blobs = storage; _runtimeSerializer = new CloudFormatter(); }
/// <summary> /// Initializes a new instance of the <see cref="QueueStorageTests"/> class. /// </summary> /// <param name="storage"> /// The storage. /// </param> /// <remarks> /// </remarks> protected QueueStorageTests(CloudStorageProviders storage) { this.QueueStorage = storage.QueueStorage; this.BlobStorage = storage.BlobStorage; }
public AssetService(IAssetRepository assetRepository, IBlobStorageProvider blobStorageProvider) { AssetRepository = assetRepository; BlobStorageProvider = blobStorageProvider; }