Beispiel #1
0
        public void BlobProtocolGetBlobRangeCloudOwnerAsync()
        {
            int all     = cloudSetup.Content.Length;
            int quarter = cloudSetup.Content.Length / 4;
            int half    = cloudSetup.Content.Length / 2;

            // Full content, as complete range. (0-end)
            cloudOwnerAsync.GetBlobRangeScenarioTest(cloudSetup.ContainerName, cloudSetup.BlobName, cloudSetup.LeaseId, cloudSetup.Content, 0, all, null);

            // Partial content, as complete range. (quarter-quarterPlusHalf)
            cloudOwnerAsync.GetBlobRangeScenarioTest(cloudSetup.ContainerName, cloudSetup.BlobName, cloudSetup.LeaseId, cloudSetup.Content, quarter, half, null);

            // Full content, as open range. (0-)
            cloudOwnerAsync.GetBlobRangeScenarioTest(cloudSetup.ContainerName, cloudSetup.BlobName, cloudSetup.LeaseId, cloudSetup.Content, 0, null, null);

            // Partial content, as open range. (half-)
            cloudOwnerAsync.GetBlobRangeScenarioTest(cloudSetup.ContainerName, cloudSetup.BlobName, cloudSetup.LeaseId, cloudSetup.Content, half, null, null);
        }