Пример #1
0
 private static void CreateBlob(ContainerHelper containerHelper, string containerName, string localfileName)
 {
     if (containerHelper.ContainerExists(containerName))
     {
         if (File.Exists(localfileName))
         {
             var blobInfo = containerHelper.CreateBlob(containerName, new FileInfo(localfileName));
             Console.WriteLine(blobInfo?.ETag);
         }
         else
         {
             Console.WriteLine("No such file found");
         }
     }
     else
     {
         Console.WriteLine($"No container is named {containerName}");
     }
 }