BlobStorage.Advanced.CallBlobClientSamples C# (CSharp) Méthode

CallBlobClientSamples() private static méthode

Calls samples that demonstrate how to use the Blob service client (CloudBlobClient) object.
private static CallBlobClientSamples ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient blobClient ) : System.Threading.Tasks.Task
blobClient Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient The Blob service client.
Résultat System.Threading.Tasks.Task
        private static async Task CallBlobClientSamples(CloudBlobClient blobClient)
        {
            // Create a buffer manager for the Blob service client. The buffer manager enables the Blob service client to
            // re-use an existing buffer across multiple operations.
            blobClient.BufferManager = new WCFBufferManagerAdapter(
                BufferManager.CreateBufferManager(32 * 1024, 256 * 1024), 256 * 1024);

            // Print out properties for the service client.
            PrintServiceClientProperties(blobClient);

            // Configure storage analytics (metrics and logging) on Blob storage.
            await ConfigureBlobAnalyticsAsync(blobClient);

            // Get geo-replication stats for Blob storage.
            await GetServiceStatsForSecondaryAsync(blobClient);

            // List all containers in the storage account.
            ListAllContainers(blobClient, "sample-");

            // List containers beginning with the specified prefix.
            await ListContainersWithPrefixAsync(blobClient, "sample-");
        }