Example #1
0
        private static async Task <Response> Execute(Locking_type locking, string xmlFile)
        {
            using (var featureStream = File.OpenRead(xmlFile))
            {
                var timer = new Stopwatch();

                timer.Start();

                var response = await Client.UpdateDatasetFeaturesAsync(clientString, DatasetId, locking, null, null, featureStream);

                timer.Stop();

                Console.WriteLine($"Execute took {timer.Elapsed}");

                return(response);
            };
        }
Example #2
0
        private async Task DeleteByLokalIdAsync(string tempFile, List <Guid> lokalIds, Locking_type locking)
        {
            string deleteXmlPath = Wfs.CreateDeleteTransaction(tempFile, lokalIds);

            Console.WriteLine($"Executing Delete");

            var response = await Execute(locking, deleteXmlPath);

            Assert.IsTrue(response.Features_erased > 0, $"Feature with lokalIds ({string.Join(',', lokalIds)}) not deleted");
        }
Example #3
0
 private async Task DeleteByLokalIdAsync(string tempFile, Guid lokalId, Locking_type locking)
 {
     await DeleteByLokalIdAsync(tempFile, new List <Guid> {
         lokalId
     }, locking);
 }