MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

Some issues during this exercise. #70550

Closed mperezcarden closed 1 year ago

mperezcarden commented 3 years ago

On this particular page, there is a step describing how to update the application. Nevertheless, the code provider does not work and it gives an error.

My suggestion is to fix the code with something more similar to the suggestion given in the original repo.

For example.

`public static void Main(string[] args) { Console.WriteLine("Azure Blob storage performance and scalability sample"); // Set threading and default connection limit to 100 to ensure multiple threads and connections can be opened. // This is in addition to parallelism with the storage client library that is defined in the functions below. ThreadPool.SetMinThreads(100, 4); ServicePointManager.DefaultConnectionLimit = 100; // (Or More)

        bool exception = false;
        try
        {
            // Call the UploadFilesAsync function.
            //UploadFilesAsync().GetAwaiter().GetResult();

            // Uncomment the following line to enable downloading of files from the storage account.  This is commented out
            // initially to support the tutorial at https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-scaleable-app-download-files.
            DownloadFilesAsync().GetAwaiter().GetResult();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
            exception = true;
        }
        finally
        {
            // The following function will delete the container and all files contained in them.  This is commented out initialy
            // As the tutorial at https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-scaleable-app-download-files has you upload only for one tutorial and download for the other. 
            if (!exception)
            {
                DeleteExistingContainersAsync().GetAwaiter().GetResult();
            }
            Console.WriteLine("Press any key to exit the application");
            Console.ReadKey();
        }
    }`

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

shashishailaj commented 3 years ago

@mperezcarden Thank you for catching this. We will investigate and update the thread.

SumanthMarigowda-MSFT-zz commented 3 years ago

@mperezcarden Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

tamram commented 2 years ago

reassign: @tamram

tamram commented 1 year ago

reassign: @pauljewellmsft

akashdubey-ms commented 1 year ago

Thank you for your dedication to our documentation.

We sincerely apologize for the delayed response. After a careful review, we are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.

Please continue to provide feedback about the documentation. We appreciate your contributions to our community.

please-close