Пример #1
0
        public async Task TestPurgeAllFilesAsync()
        {
            using var client = new CloudFlareClient(Credentials.Credentials.Authentication);
            var zonesQueryResult = (await client.GetZonesAsync()).Result.First();
            var purgeAllFilesAsyncQueryResult = await client.PurgeAllFilesAsync(zonesQueryResult.Id, true);

            Assert.NotNull(purgeAllFilesAsyncQueryResult);
            Assert.Empty(purgeAllFilesAsyncQueryResult.Errors);
            Assert.True(purgeAllFilesAsyncQueryResult.Success);
        }