// ************************************************************************************************************************* // Instructions: This sample can be run using either the Azurite emulator that installs as part of this SDK - or by // updating the App.Config file with your AccountName and Key. // // To run the sample using the Azurite (default option): // 1. run command: azurite --oauth basic --cert certname.pem --key certname-key.pem to start Azurite // 2. Set breakpoints and run the project using F10. // // To run the sample using the Storage Service: // 1. Open the app.config file and comment out the connection string and account for the Azurite emulator and // uncomment the connection string and account for the storage service (AccountName=[]...) // 2. Create a Storage Account through the Azure Portal and provide your [AccountName] and [AccountKey] in // the App.Config file. See http://go.microsoft.com/fwlink/?LinkId=325277 for more information. // 3. Set breakpoints and run the project using F10. // // If possible, run the samples with a storage account that is not used for production data. You can create a new storage // account from the Azure portal if desired. // // ************************************************************************************************************************* static void Main(string[] args) { Console.WriteLine("Azure Blob Storage - Getting Started Samples\n"); GettingStarted.CallBlobGettingStartedSamples(); Console.WriteLine("Azure Blob Storage - Advanced Samples\n "); Advanced.CallBlobAdvancedSamples().Wait(); Console.WriteLine(); Console.WriteLine("Press any key to exit."); Console.ReadLine(); }
// ************************************************************************************************************************* // Instructions: This sample can be run using either the Azure Storage Emulator that installs as part of this SDK - or by // updating the App.Config file with your AccountName and Key. // // To run the sample using the Storage Emulator (default option): // 1. Start the Azure Storage Emulator (once only) by pressing the Start button or the Windows key and searching for it // by typing "Azure Storage Emulator". Select it from the list of applications to start it. // 2. Set breakpoints and run the project using F10. // // To run the sample using the Storage Service: // 1. Open the app.config file and comment out the connection string for the emulator (UseDevelopmentStorage=True) and // uncomment the connection string for the storage service (AccountName=[]...) // 2. Create a Storage Account through the Azure Portal and provide your [AccountName] and [AccountKey] in // the App.Config file. See http://go.microsoft.com/fwlink/?LinkId=325277 for more information. // 3. Set breakpoints and run the project using F10. // // If possible, run the samples with a storage account that is not used for production data. You can create a new storage // account from the Azure portal if desired. // // ************************************************************************************************************************* static void Main(string[] args) { Console.WriteLine("Azure Blob Storage - Getting Started Samples\n"); GettingStarted.CallBlobGettingStartedSamples(); // Uncomment the following lines to run the advanced samples. // Console.WriteLine("Azure Blob Storage - Advanced Samples\n "); Advanced.CallBlobAdvancedSamples().Wait(); Console.WriteLine(); Console.WriteLine("Press any key to exit."); Console.ReadLine(); }