Exemplo n.º 1
0
        private static AzureAccessObject GetAzureAccessObject()
        {
            AzureAccessObject azureAccessObject = new AzureAccessObject();

            azureAccessObject.StorageAccountName = ConfigurationManager.AppSettings["AzureStorageAccount"];
            azureAccessObject.StorageAccessKey   = ConfigurationManager.AppSettings["AzureStorageKey"];
            return(azureAccessObject);
        }
Exemplo n.º 2
0
 static Program()
 {
     azureAccessObject   = GetAzureAccessObject();
     credentials         = new StorageCredentials(azureAccessObject.StorageAccountName, azureAccessObject.StorageAccessKey);
     cloudStorageAccount = new CloudStorageAccount(credentials, true);
 }