コード例 #1
0
        protected async override Task TestWarmup()
        {
            Console.WriteLine("{0} Trigger Warmup - Starting", StorageType);

            var sw = Stopwatch.StartNew();

            await UploadItems(new[] { SourceItems.First() });

            Console.WriteLine("{0} Trigger Warmup - Verify test", StorageType);

            bool isWarmUpSuccess = await VerifyTargetDestinationStorageCount(1);

            sw.Stop();

            Console.WriteLine("{0} Trigger Warmup - Clean Up", StorageType);

            TestSetupWithRetry();

            Console.WriteLine(isWarmUpSuccess ? "Warmup - Done!" : "Warmup - Done with failures");
            Console.WriteLine("{1} Trigger Warmup - Elapsed Time: {0}ms", sw.ElapsedMilliseconds, StorageType);
        }