aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Web/Storage/BlobStorageManager.cs
blob: d3f8b1dc48de3af4d910698253e737a30ebdad59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Web.Storage
{
    public class BlobStorageManager
    {
        private CloudBlobClient _client;

        public BlobStorageManager()
        {
            CloudStorageAccount storageAccount = CloudStorageAccount.Parse(WebConfig.STORAGE_ACCOUNT);
            _client = storageAccount.CreateCloudBlobClient();
        }

        public CloudBlobContainer GetContainer(String name)
        {
            var container = _client.GetContainerReference(name);
            return container;
        }
    }
}