UNPKG

@itwin/object-storage-azure

Version:

Object storage implementation using Azure Blob Storage

20 lines 1.41 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); exports.AzureClientStorageBindings = void 0; const object_storage_core_1 = require("@itwin/object-storage-core"); const common_1 = require("../common"); const BlockBlobClientWrapperFactory_1 = require("../server/wrappers/BlockBlobClientWrapperFactory"); const AzureClientStorage_1 = require("./AzureClientStorage"); class AzureClientStorageBindings extends object_storage_core_1.ClientStorageDependency { dependencyName = common_1.Constants.storageType; register(container, _config) { container.registerFactory(object_storage_core_1.Types.Client.clientWrapperFactory, () => new BlockBlobClientWrapperFactory_1.BlockBlobClientWrapperFactory()); container.registerFactory(object_storage_core_1.Types.Client.clientStorage, (c) => new AzureClientStorage_1.AzureClientStorage(c.resolve(object_storage_core_1.Types.Client.clientWrapperFactory))); } } exports.AzureClientStorageBindings = AzureClientStorageBindings; //# sourceMappingURL=AzureClientStorageBindings.js.map