- Timestamp:
- 01/15/13 15:50:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Controller/Azure/DAL.cs
r8958 r9166 6 6 using Microsoft.WindowsAzure; 7 7 using Microsoft.WindowsAzure.StorageClient; 8 using Microsoft.WindowsAzure.ServiceRuntime; 9 using System.Diagnostics; 8 10 9 11 namespace HeuristicLab.Services.Optimization.ControllerService.Azure { … … 98 100 get { 99 101 if (storageAccount == null) { 100 storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting(AzureConstants.CLOUD_SETTINGS_KEY)); 102 try { 103 storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting(AzureConstants.CLOUD_SETTINGS_KEY)); 104 } 105 catch (Exception ex) { 106 Trace.WriteLine(ex.Message); 107 storageAccount = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=optimizationstorage1;AccountKey=n7Leom8ZFWkof/VQ2a4aRSvwOlX+Gwr3uojQF9CFJw1osmGCV0WwaNC8s7nkZ+qteLduAgW2l75WFpbXrkvG4Q=="); 108 } 101 109 } 102 110 return storageAccount;
Note: See TracChangeset
for help on using the changeset viewer.