Example #1
0
 /// <summary>
 /// Push file to Blob storage
 /// </summary>
 /// <param name="storageInfo">Connection info</param>
 /// <param name="containerName">Container name</param>
 /// <param name="packageFileName">File name</param>
 /// <param name="indexPath">Path to local folder</param>
 public static void PushToStorage(string storageInfo, string containerName,  string packageFileName,string indexPath)
 {
     string destDir = Directory.GetParent(indexPath).ToString(); //index dir parent to store archive
     string destPath = Path.Combine(destDir, packageFileName);
     StorageHandler.CreateArchive(indexPath, destPath);
     var storage = new StorageHandler(storageInfo);
     storage.SetBlob(containerName, destPath);
 }