예제 #1
0
        public static CloudBlobContainer GetBlobContainer(MSGorillaBlobContainer container)
        {
            var client      = AzureStorageAccount.CreateCloudBlobClient();
            var azcontainer = client.GetContainerReference(_containerDict[container]);

            azcontainer.CreateIfNotExists();
            return(azcontainer);
        }
예제 #2
0
 protected void InitAzure()
 {
     //Azure Configuration
     if (AzureStorageAccount != null)
     {
         AzureBlobClient = AzureStorageAccount.CreateCloudBlobClient();
     }
     else
     {
         AzureBlobClient = null;
     }
 }