/// <summary> /// Creates the tape storage factory for windows Azure storage. /// </summary> /// <param name="config">Azure storage configuration to create tape storage with.</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(IAzureStorageConfig config, string containerName, bool initializeForWriting = true) { var factory = new BlobTapeStorageFactory(config, containerName); if (initializeForWriting) { factory.InitializeForWriting(); } return factory; }
/// <summary> /// Creates the tape storage factory for windows Azure storage. /// </summary> /// <param name="config">Azure storage configuration to create tape storage with.</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(this IAzureStorageConfig config, string containerName) { var factory = new BlobTapeStorageFactory(config, containerName); factory.InitializeForWriting(); return factory; }