Beispiel #1
0
        /// <summary> Creates the storage access configuration. </summary>
        /// <param name="cloudStorageAccount">The cloud storage account.</param>
        /// <param name="storageConfigurationStorage">The config storage.</param>
        /// <returns></returns>
        public static IAzureStorageConfig CreateConfig(CloudStorageAccount cloudStorageAccount, Action <AzureStorageConfigurationBuilder> storageConfigurationStorage)
        {
            var builder = new AzureStorageConfigurationBuilder(cloudStorageAccount);

            storageConfigurationStorage(builder);

            return(builder.Build());
        }
Beispiel #2
0
        /// <summary> Creates the storage access configuration. </summary>
        /// <param name="cloudStorageAccount">The cloud storage account.</param>
        /// <param name="storageConfigurationStorage">The config storage.</param>
        /// <returns></returns>
        public static IAzureStorageConfig CreateConfig(CloudStorageAccount cloudStorageAccount,
            Action<AzureStorageConfigurationBuilder> storageConfigurationStorage)
        {
            var builder = new AzureStorageConfigurationBuilder(cloudStorageAccount);
            storageConfigurationStorage(builder);

            return builder.Build();
        }
Beispiel #3
0
        /// <summary> Creates the simplified nuclear storage wrapper around Atomic storage. </summary>
        /// <param name="storageAccount">The storage account.</param>
        /// <param name="configStrategy">The config strategy builder.</param>
        /// <returns></returns>
        public static NuclearStorage CreateNuclear(CloudStorageAccount storageAccount, Action <DefaultAtomicStorageStrategyBuilder> configStrategy)
        {
            var config = new AzureStorageConfigurationBuilder(storageAccount).Build();

            return(CreateNuclear(config, configStrategy));
        }
Beispiel #4
0
        /// <summary>
        /// Creates the tape storage factory for windows Azure storage.
        /// </summary>
        /// <param name="account">Azure account to create tape storage from.</param>
        /// <param name="containerName">Name of the container.</param>
        /// <param name="initializeForWriting">if set to <c>true</c>, then storage is initialized for writing as needed.</param>
        /// <returns></returns>
        public static BlobTapeStorageFactory CreateTape(CloudStorageAccount account, string containerName, bool initializeForWriting)
        {
            var builder = new AzureStorageConfigurationBuilder(account);

            return(CreateTape(builder.Build(), containerName, initializeForWriting));
        }
Beispiel #5
0
        /// <summary>
        /// Creates the streaming storage out of the provided cloud storage account.
        /// </summary>
        /// <param name="config">The config.</param>
        /// <returns></returns>
        public static IStreamingRoot CreateStreaming(CloudStorageAccount config)
        {
            var account = new AzureStorageConfigurationBuilder(config);

            return(CreateStreaming(account.Build()));
        }