Example #1
0
        public void SetUp()
        {
            var configuration = new AzureBlockStoreConfiguration
            {
                ConnectionString = "UseDevelopmentStorage=true",
                MemoryCacheInMB  = 1024,
                Disconnected     = true
            };

            AzureBlockStore.Initialize(configuration);
            _storageAccount = CloudStorageAccount.DevelopmentStorageAccount;
        }
 static AzurePersistenceManager()
 {
     CloudStorageAccount.SetConfigurationSettingPublisher((key, publisher) => publisher(RoleEnvironment.GetConfigurationSettingValue(key)));
     StorageAccount = CloudStorageAccount.FromConfigurationSetting(AzureConstants.BlockStoreConnectionStringName);
     BlockStore = AzureBlockStore.Instance;
 }