Skip to content

Commit bb5ef8d

Browse files
committed
AzureBlobStorageService: code clean up and remove module.json so that it not being copied to the host
1 parent 0b89300 commit bb5ef8d

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/Modules/SimplCommerce.Module.StorageAzureBlob/AzureBlobStorageService.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
using Microsoft.Extensions.Configuration;
1+
using System.Diagnostics.Contracts;
2+
using System.IO;
3+
using System.Threading.Tasks;
4+
using Microsoft.Extensions.Configuration;
25
using Microsoft.WindowsAzure.Storage;
36
using Microsoft.WindowsAzure.Storage.Blob;
47
using SimplCommerce.Module.Core.Services;
5-
using System;
6-
using System.Collections.Generic;
7-
using System.Diagnostics.Contracts;
8-
using System.IO;
9-
using System.Linq;
10-
using System.Text;
11-
using System.Threading.Tasks;
128

139
namespace SimplCommerce.Module.StorageAzureBlob
1410
{
@@ -47,9 +43,7 @@ public async Task SaveMediaAsync(Stream mediaBinaryStream, string fileName, stri
4743
await _blobContainer.CreateIfNotExistsAsync();
4844

4945
var blockBlob = _blobContainer.GetBlockBlobReference(fileName);
50-
5146
await blockBlob.UploadFromStreamAsync(mediaBinaryStream);
5247
}
53-
5448
}
5549
}

src/Modules/SimplCommerce.Module.StorageAzureBlob/module.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)