Example #1
0
        public BlobRepository(BlobStoreConnection blobStoreConnection)
        {
            blobStoreConnection.Verify(nameof(blobStoreConnection)).IsNotNull();

            _blobStoreConnection = blobStoreConnection;
            _blobServiceClient   = new BlobServiceClient(_blobStoreConnection.ConnectionString);
            _containerClient     = _blobServiceClient.GetBlobContainerClient(_blobStoreConnection.ContainerName);
        }
Example #2
0
        public CreateBlobContainerState(IBlobRepository blobRepository, BlobStoreConnection blobStoreConnection)
        {
            blobRepository.Verify(nameof(blobRepository)).IsNotNull();
            blobStoreConnection.Verify(nameof(blobStoreConnection)).IsNotNull();
            blobStoreConnection.ContainerName.Verify(nameof(blobStoreConnection.ContainerName)).IsNotNull();

            _blobStoreConnection = blobStoreConnection;
            _blobRepository      = blobRepository;
        }