Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Foundation] Ensure that post requests are not cached by the native code. #14729

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

mandel-macaque
Copy link
Member

The behaviour from apple is wrong, PUT and POST are differnet in that PUT is idempotent.
Calling PUT several times successively has the same effect (that is no side effect),
where successive identical POST may have additional effects

We should not let the native code cache the calls.

Related issue: https://github.com/xamarin/maccore/issues/2571

code.

The behaviour from apple is wrong, PUT and POST are differnet in that PUT is idempotent.
Calling PUT several times successively has the same effect (that is no side effect),
where successive identical POST may have additional effects

We should not let the native code cache the calls.
@mandel-macaque mandel-macaque added bug If an issue is a bug or a pull request a bug fix enhancement The issue or pull request is an enhancement labels Apr 12, 2022
Copy link
Contributor

@dotMorten dotMorten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vs-mobiletools-engineering-service2
Copy link
Collaborator

📋 [PR Build] API Diff 📋

API Current PR diff

✅ API Diff (from PR only) (no change)

View API diff
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff

API diff

✅ API Diff from stable

View API diff
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff

Generator diff

Generator Diff (no change)

Pipeline on Agent XAMBOT-1105.Monterey
Hash: 2f2df7de922e171b743400c890870032cc3434f0

@vs-mobiletools-engineering-service2
Copy link
Collaborator

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent XAMBOT-1109.Monterey
Hash: 2f2df7de922e171b743400c890870032cc3434f0

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ Tests on macOS Mac Catalina (10.15) passed ✅

Tests passed

All tests on macOS Mac Catalina (10.15) passed.

Pipeline on Agent
Merge 2f2df7d into b8eb1c3

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ Tests on macOS M1 - Mac Big Sur (11.5) failed ❌

Failed tests are:

  • dontlink
  • linksdk
  • xammac_tests
  • monotouch-test

Pipeline on Agent
Merge 2f2df7d into b8eb1c3

@dotMorten
Copy link
Contributor

Repro:
Just call await Repro.TestCache.Test();
This works the first time. Second time this is hit, the two requests returns the same result.

using System.Diagnostics;
using System.Net.Http;
using System.Threading.Tasks;

namespace Repro
{
    internal class TestCache
    {
        private static HttpClient client;

        static TestCache()
        {
            HttpMessageHandler handler;
#if __IOS__
            handler = new NSUrlSessionHandler() { DisableCaching = false };
#else
            handler = new SocketsHttpHandler();
#endif
            client = new HttpClient(handler);
        }
        private static string geometry1 = "{\"rings\":[[[-8850486.2064999994,5428352.2069000006],[-8850441.0822000001,5428366.1526999995],[-8850443.4531999994,5428388.4157999977],[-8850446.6684000008,5428403.5560000017],[-8850448.7510000002,5428413.3632000014],[-8850447.1765000001,5428435.5754000023],[-8850451.3267000001,5428457.4098000005],[-8850471.9795999993,5428466.6921999976],[-8850493.2138,5428464.5538000017],[-8850513.8959999997,5428473.9180999994],[-8850533.9824999999,5428464.9620999992],[-8850556.2668999992,5428456.7908999994],[-8850571.7236000001,5428467.7929000035],[-8850554.7202000003,5428478.4509000033],[-8850565.2697000001,5428495.011500001],[-8850589.3803000003,5428501.6005000025],[-8850603.8397000004,5428488.4174000025],[-8850624.8110000007,5428483.8522000015],[-8850643.7498000003,5428473.7487000003],[-8850659.5940000005,5428486.5803000033],[-8850676.9729999993,5428502.0617000014],[-8850699.3959999997,5428493.6379000023],[-8850720.8646000009,5428496.5364999995],[-8850726.5916000009,5428519.8149999976],[-8850724.0365999993,5428545.9536999986],[-8850726.1265999991,5428574.0372999981],[-8850743.6446000002,5428595.2471999973],[-8850763.5956999995,5428615.2250000015],[-8850789.5184000004,5428625.0280999988],[-8850807.6157000009,5428630.1313999966],[-8850813.9215999991,5428646.5200999975],[-8850816.6597000007,5428653.6344000027],[-8850814.3870000001,5428669.3691999987],[-8850812.9289999995,5428674.6359999999],[-8850812.6074000001,5428679.9166999981],[-8850814.5410999991,5428689.1828999966],[-8850818.0854000002,5428698.1257999986],[-8850821.8454,5428707.3933999985],[-8850824.5295000002,5428712.7818000019],[-8850828.2873,5428713.7497999966],[-8850833.4410999995,5428711.8095000014],[-8850840.1848000009,5428708.1445000023],[-8850843.3881999999,5428710.0282000005],[-8850858.4316000007,5428711.8037],[-8850865.8016999997,5428723.3030999973],[-8850865.9372000005,5428723.7414999977],[-8850872.8550000004,5428746.0267999992],[-8850864.7002000008,5428765.4268999994],[-8850843.7696000002,5428775.7533000037],[-8850819.0780999996,5428780.887000002],[-8850802.6544000003,5428790.0599000007],[-8850805.0438000001,5428794.0913000032],[-8850809.7755999994,5428802.0742999986],[-8850830.7207999993,5428798.3963999972],[-8850840.0125999991,5428809.8137999997],[-8850838.7166000009,5428831.7604999989],[-8850838.6600000001,5428832.7176999971],[-8850832.9110000003,5428857.0861999989],[-8850813.3221000005,5428876.7638000026],[-8850791.6170000006,5428885.7291999981],[-8850769.3851999994,5428879.5800999999],[-8850746.9181999993,5428871.0265000015],[-8850726.8850999996,5428870.5834999979],[-8850719.0888999999,5428885.1692000031],[-8850717.1414000001,5428909.5760999992],[-8850711.1984000001,5428932.3794],[-8850711.6011999995,5428954.6937000006],[-8850710.7043999992,5428977.3373999968],[-8850705.2451000009,5428998.009800002],[-8850695.8731999993,5429019.9773000032],[-8850700.6871000007,5429050.4305000007],[-8850700.5457000006,5429062.1116999984],[-8850700.3300999999,5429079.9838000014],[-8850719.4531999994,5429103.7062000036],[-8850728.1247000005,5429133.3127999976],[-8850744.7864999995,5429152.5314999968],[-8850764.2412999999,5429170.6999000013],[-8850784.7193,5429189.304899998],[-8850807.4370000008,5429208.1291999966],[-8850831.3439000007,5429222.3382999972],[-8850853.2862,5429238.817900002],[-8850866.0230999999,5429255.0750999972],[-8850887.2467,5429258.8241000026],[-8850901.6966999993,5429273.6393000036],[-8850907.1608000007,5429298.0992000028],[-8850912.2650000006,5429320.494599998],[-8850927.8913000003,5429343.2018999979],[-8850936.1900999993,5429369.3418999985],[-8850931.9892999995,5429391.2391000018],[-8850936.5823999997,5429415.3247999996],[-8850954.9451000001,5429428.2026000023],[-8851001.0543000009,5429412.557599999],[-8850993.7851999998,5429443.8603999987],[-8850994.7412999999,5429462.2897000015],[-8851011.6799999997,5429474.438000001],[-8851049.9931000005,5429474.3676000014],[-8851047.9627999999,5429492.5851999968],[-8851028.4952000007,5429493.1568000019],[-8851016.6469999999,5429503.3166999966],[-8851025.6232999992,5429528.5675999969],[-8851044.3045000006,5429540.7866000012],[-8851054.2167000007,5429528.6605999991],[-8851068.0430999994,5429527.7692999989],[-8851083.4617999997,5429544.8907999992],[-8851096.4341000002,5429567.7391000018],[-8851114.8535999991,5429586.3602000028],[-8851120.3855000008,5429607.7584000006],[-8851117.7765999995,5429630.5231000036],[-8851141.7802000009,5429637.7145999968],[-8851159.4525000006,5429653.0974999964],[-8851161.8616000004,5429677.9165999964],[-8851151.7022999991,5429702.4393000007],[-8851148.1381000001,5429725.5302999988],[-8851171.1741000004,5429732.4914999977],[-8851193.7673000004,5429735.7921999991],[-8851204.7611999996,5429748.7088999972],[-8851215.7147000004,5429769.7014999986],[-8851222.3408000004,5429791.4843000025],[-8851232.3363000005,5429782.9338999987],[-8851256.4233999997,5429788.7751000002],[-8851269.1886,5429811.6683000028],[-8851254.1241999995,5429857.5583000034],[-8851261.5806000009,5429882.1327000037],[-8851284.5909000002,5429898.5707999989],[-8851336.1809999999,5429914.6878999993],[-8851362.0789999999,5429917.429899998],[-8851388.7520000003,5429923.5018000007],[-8851414.7476000004,5429931.5581],[-8851442.9545000009,5429933.7316000015],[-8851490.4316000007,5429912.300999999],[-8851495.2160999998,5429907.0327000022],[-8851509.8680000007,5429890.9003999978],[-8851525.4869999997,5429863.1594000012],[-8851562.3839999996,5429830.7225999981],[-8851586.0040000007,5429852.9733000025],[-8851583.0625,5429871.3874000013],[-8851591.6664000005,5429891.2185000032],[-8851607.8341000006,5429913.2041999996],[-8851627.1931999996,5429915.2811999992],[-8851634.1021999996,5429900.987499997],[-8851649.9623000007,5429905.3131000027],[-8851664.9389999993,5429917.1322000027],[-8851680.4510999992,5429910.4569000006],[-8851699.8809999991,5429926.8942999989],[-8851703.6391000003,5429933.570600003],[-8851714.8052999992,5429952.0221000016],[-8851734.3756000008,5429976.8131000027],[-8851757.0023999996,5430004.1872999966],[-8851773.0253999997,5430056.7599000037],[-8851759.8224999998,5430066.4764999971],[-8851770.8740999997,5430086.4697000012],[-8851788.7290000003,5430107.3606999964],[-8851796.5328000002,5430134.3096000031],[-8851791.9070999995,5430167.3495000005],[-8851793.0468000006,5430197.1726000011],[-8851809.2139999997,5430214.2673000023],[-8851829.6542000007,5430231.4483999982],[-8851855.0723999999,5430249.5137000009],[-8851881.8449000008,5430263.5099000037],[-8851910.2377000004,5430285.0384000018],[-8851922.6621000003,5430317.7708000019],[-8851917.5802999996,5430348.452200003],[-8851941.5050000008,5430354.4689999968],[-8851979.3718999997,5430389.2058999985],[-8851993.3706,5430410.9334999993],[-8852000.8435999993,5430436.8967999965],[-8852004.9427000005,5430463.7880000025],[-8851978.5801999997,5430494.5626000017],[-8851966.8011000007,5430504.5834000036],[-8851962.2862999998,5430522.2234999985],[-8851970.3089000005,5430543.5517999977],[-8851982.8387000002,5430549.947300002],[-8851992.8875999991,5430533.6476999968],[-8852013.4476999994,5430523.8576999977],[-8852028.8670000006,5430528.4512000009],[-8852043.1813999992,5430538.5208000019],[-8852060.1800999995,5430548.8953000009],[-8852083.1524999999,5430569.8289000019],[-8852108.5441999994,5430582.882600002],[-8852138.1107000001,5430589.2058999985],[-8852166.2248999998,5430595.3479000032],[-8852185.8232000005,5430609.9780000001],[-8852204.0941000003,5430624.5179999992],[-8852219.5042000003,5430644.5996000022],[-8852239.0072000008,5430663.5047999993],[-8852258.5100999996,5430681.4593999982],[-8852274.6918000001,5430690.6806000024],[-8852317.1383999996,5430756.5230000019],[-8852303.8408000004,5430761.7292999998],[-8852272.4407000002,5430768.4475999996],[-8852246.5715999994,5430778.8236000016],[-8852212.3145000003,5430791.2305999994],[-8852187.6090999991,5430799.3968999982],[-8852168.2007999998,5430804.451700002],[-8852141.1401000004,5430810.9393000007],[-8852117.7008999996,5430817.2386000007],[-8852078.9218000006,5430823.2709999979],[-8852043.1794000007,5430830.2155999988],[-8852013.2778999992,5430834.6243000031],[-8851985.1607000008,5430841.255400002],[-8851791.1873000003,5430893.997299999],[-8851132.3805,5431103.0175999999],[-8850380.5906000007,5431337.1010000035],[-8850086.2559999991,5431434.242899999],[-8849760.8537000008,5431541.6248999983],[-8849604.8452000003,5431593.0939000025],[-8849286.0094000008,5431698.2915000021],[-8848798.5416999999,5431851.8176999986],[-8848484.4218000006,5431951.0195999965],[-8848167.7226999998,5432055.3030999973],[-8847788.9211999997,5432179.5393999964],[-8847087.5957999993,5432408.3306000009],[-8847082.9038999993,5432409.8615000024],[-8846567.9563999996,5432577.8295999989],[-8846565.8726000004,5432501.5894000009],[-8846565.7354000006,5432451.2378999963],[-8846566.0840000007,5432395.9165999964],[-8846573.8627000004,5432077.7551999986],[-8846574.6187999994,5432046.8735999987],[-8846578.0932,5431904.7237000018],[-8846578.4876000006,5431875.6981000006],[-8846578.0570999999,5431860.6403999999],[-8846575.9489999991,5431825.9138000011],[-8846571.2708999999,5431791.8040999994],[-8846566.3827,5431757.0199000016],[-8846562.6220999993,5431730.0341999978],[-8846537.9063000008,5431584.9165999964],[-8846460.1048000008,5431137.7575000003],[-8846387.4804999996,5430713.8351000026],[-8846311.5726999994,5430276.4707000032],[-8846304.0664000008,5430233.2163999975],[-8846301.0296,5430215.8808000013],[-8846299.7189000007,5430208.4037000015],[-8846295.9744000006,5430187.0339000002],[-8846215.9802000001,5429736.1819000021],[-8846141.4044000003,5429267.3263000026],[-8846126.7751000002,5429175.9996000007],[-8846079.2299000006,5428878.2009000033],[-8846024.9539000001,5428532.3505999967],[-8846024.4105999991,5428528.8887000009],[-8846018.9777000006,5428508.240199998],[-8846014.9940000009,5428493.1032000035],[-8846011.6538999993,5428466.6950000003],[-8846010.2869000006,5428455.8835999966],[-8846004.6150000002,5428414.8887000009],[-8846000.6897,5428372.9913000017],[-8845997.5244999994,5428325.1294],[-8845996.1940000001,5428290.5137000009],[-8845969.4220000003,5428210.3728],[-8845957.8714000005,5428145.9425000027],[-8845958.3288000003,5428143.2154000029],[-8845958.7094000001,5428139.0313000008],[-8845958.0447000004,5428132.0223999992],[-8845957.5870999992,5428125.6906000003],[-8845940.9033000004,5428025.0072999969],[-8845920.5645000003,5427900.8456000015],[-8845901.1589000002,5427774.9226000011],[-8845881.5629999992,5427645.3628000021],[-8845860.3543999996,5427522.5822999999],[-8845829.6631000005,5427340.8109000027],[-8845753.3051999994,5426888.6772999987],[-8845822.1919,5426869.2334000021],[-8845885.4789000005,5426851.8236000016],[-8845892.3848000001,5426851.5754999965],[-8845923.1252999995,5426848.1568000019],[-8845949.1435000002,5426852.8231000006],[-8845981.6483999994,5426858.2923000008],[-8845999.5483999997,5426862.8356000036],[-8846015.7569999993,5426870.2937999964],[-8846029.568,5426875.8923000023],[-8846043.2164999992,5426883.3883000016],[-8846057.0183000006,5426891.3920999989],[-8846072.2751000002,5426901.1718999967],[-8846081.1256000008,5426909.2013999969],[-8846161.4426000006,5427013.7739999965],[-8846248.4868999999,5427127.1071000025],[-8846353.2642999999,5427265.7498999983],[-8846395.2025000006,5427323.7805999964],[-8846431.0949000008,5427366.6494999975],[-8846467.8340000007,5427405.0131999999],[-8846520.3806999996,5427451.3249000013],[-8846546.8478999995,5427474.5155000016],[-8846598.1927000005,5427503.4572999999],[-8846665.8186000008,5427541.3143000007],[-8846747.8352000006,5427586.0710999966],[-8846828.0600000005,5427629.1548999995],[-8846888.1673000008,5427659.131099999],[-8846902.4346999992,5427664.4074999988],[-8846923.5763000008,5427670.5534999967],[-8846977.3718999997,5427680.8260999992],[-8847036.2133000009,5427683.4725999981],[-8847063.6843999997,5427683.8131000027],[-8847082.3954000007,5427683.121100001],[-8847107.6170000006,5427680.2685000002],[-8847135.2684000004,5427673.9051999971],[-8847513.0724999998,5427554.7867000028],[-8847615.1751000006,5427522.816399999],[-8847703.1043999996,5427496.4820000008],[-8847739.4738999996,5427484.3282999992],[-8847749.6339999996,5427480.8740999997],[-8847779.9448000006,5427470.5600999966],[-8847793.4998000003,5427464.9636000022],[-8847814.9189999998,5427454.3931000009],[-8847846.6198999994,5427431.6469999999],[-8847860.1921999995,5427421.2453000024],[-8847886.4901999999,5427398.8425000012],[-8847893.3903999999,5427392.4975999966],[-8847905.4520999994,5427378.304899998],[-8847921.9309999999,5427361.1031000018],[-8847937.0322999991,5427339.3329000026],[-8847944.6731000002,5427328.1427000016],[-8847953.8030999992,5427313.3597000018],[-8847960.6030999999,5427302.4257000014],[-8847965.1259000003,5427295.5086999983],[-8847975.6805000007,5427269.0222999975],[-8847982.5741000008,5427250.4839999974],[-8847990.0281000007,5427219.2129999995],[-8847993.8710999992,5427200.3082000017],[-8847995.7083000001,5427171.1114000008],[-8847990.5147999991,5426953.1943999976],[-8847981.3088000007,5426566.5859000012],[-8847974.1519000009,5426476.8790000007],[-8847974.2014000006,5426452.1074000001],[-8847975.4320999999,5426422.7281000018],[-8847976.2210000008,5426397.3632000014],[-8847979.8651000001,5426365.0328999981],[-8847984.0110999998,5426341.0530999973],[-8847991.8121000007,5426313.3704999983],[-8848002.0808000006,5426272.5631999969],[-8848014.2115000002,5426249.4798000008],[-8848037.2522999998,5426211.443599999],[-8848046.3417000007,5426200.1856999993],[-8848059.6892000008,5426183.5702000037],[-8848075.0800999999,5426163.3752999976],[-8848096.2601999994,5426147.1498999968],[-8848106.9280999992,5426135.0417999998],[-8848116.3004999999,5426127.7631999999],[-8848136.4048999995,5426112.2324000001],[-8848155.4166000001,5426102.2106999978],[-8848183.0913999993,5426084.3790000007],[-8848209.2049000002,5426072.9381000027],[-8848228.8657000009,5426065.6723999977],[-8848389.4500999991,5426025.7589000016],[-8848417.2514999993,5426019.2555999979],[-8848439.2849000003,5426015.0051999986],[-8848474.3052999992,5426008.7595999986],[-8848501.7586000003,5426000.0534000024],[-8848525.6305,5425992.8268000036],[-8848574.1524999999,5425977.9459000006],[-8848619.5062000006,5425963.9976999983],[-8848637.2673000004,5425958.5366000012],[-8848707.8754999992,5425937.2074000016],[-8848789.5152000003,5425912.5468999967],[-8848884.7378000002,5425883.7841999978],[-8848990.3223999999,5425851.8897999972],[-8849068.4068,5425825.6055999994],[-8849165.6103000008,5425795.9910999984],[-8849256.7259999998,5425768.2282999977],[-8849501.5806000009,5425696.6264000013],[-8849505.4173000008,5425695.5045000017],[-8849566.2326999996,5425677.7201000005],[-8849569.6258000005,5425686.9990999997],[-8849583.4464999996,5425712.8088999987],[-8849599.1758999992,5425736.7905000001],[-8849588.4647000004,5425769.5508999974],[-8849588.3949999996,5425802.5896999985],[-8849608.1587000005,5425827.6366999969],[-8849637.7219999991,5425826.0997999981],[-8849662.0318999998,5425843.8552000001],[-8849661.0658,5425874.1454000026],[-8849663.9682,5425909.0335000008],[-8849657.9419999998,5425939.7951000035],[-8849656.3802000005,5425967.0190000013],[-8849658.0804999992,5426001.8614000008],[-8849664.5633000005,5426032.7232000008],[-8849674.5843000002,5426063.3991999999],[-8849681.4389999993,5426100.0185000002],[-8849677.2391999997,5426136.7141000032],[-8849667.7441000007,5426168.5331000015],[-8849670.5088,5426200.6297999993],[-8849699.0512000006,5426222.6441000029],[-8849728.4780999999,5426239.7883000001],[-8849759.6187999994,5426251.2410999984],[-8849791.8241000008,5426267.2629999965],[-8849819.5550999995,5426280.5714000016],[-8849824.9831000008,5426283.1763999984],[-8849856.0825999994,5426296.8246000037],[-8849887.6656999998,5426302.6762000024],[-8849920.2995999996,5426311.1327000037],[-8849951.1919999998,5426320.494599998],[-8849986.4522999991,5426336.5741000026],[-8850019.9158999994,5426350.7502999976],[-8850052.5499000009,5426364.4505999982],[-8850081.2984999996,5426375.2687000036],[-8850112.3156000003,5426387.3237000033],[-8850130.9086000007,5426414.0612000003],[-8850133.0116000008,5426445.8394000009],[-8850143.8497000001,5426472.0954999998],[-8850170.0577000007,5426491.9494000003],[-8850199.0022,5426508.6027999967],[-8850226.1219999995,5426522.0439999998],[-8850253.6148000006,5426531.0045000017],[-8850281.5636999998,5426542.6547999978],[-8850300.7783000004,5426566.3412000015],[-8850309.6128000002,5426595.7793999985],[-8850326.7402999997,5426619.0834000036],[-8850349.7418000009,5426638.1547000036],[-8850375.3972999994,5426656.6568000019],[-8850400.6385999992,5426679.8726999983],[-8850424.8571000006,5426699.9566000029],[-8850450.3055000007,5426718.192400001],[-8850474.7864999995,5426736.7820999995],[-8850498.2861000001,5426752.7322999984],[-8850521.0812999997,5426775.7802999988],[-8850547.9664999992,5426783.2018999979],[-8850575.0581999999,5426782.0493000001],[-8850602.1353999991,5426774.2607999966],[-8850629.5856999997,5426778.7677000016],[-8850650.4744000006,5426796.6722000018],[-8850659.3101000004,5426823.4987000003],[-8850682.1186999995,5426832.7088999972],[-8850708.6030000001,5426830.6855000034],[-8850731.2467,5426847.0200000033],[-8850739.6956999991,5426875.5969000012],[-8850739.2820999995,5426899.2533000037],[-8850739.2149,5426903.1180000007],[-8850731.0481000002,5426925.7681000009],[-8850713.1483999994,5426935.0943000019],[-8850706.1420000009,5426951.6977000013],[-8850724.4037999995,5426967.5512999967],[-8850751.9526000004,5426963.5106000006],[-8850777.3304999992,5426955.2031999975],[-8850800.0004999992,5426957.7089999989],[-8850826.9704999998,5426969.6757000014],[-8850853.7460999992,5426974.8372000009],[-8850885.2357999999,5426981.3781000003],[-8850912.0254999995,5426987.8530000001],[-8850927.4104999993,5426988.0868000016],[-8850941.8014000002,5426997.1445999965],[-8850959.2475000005,5427009.5560000017],[-8850972.4090999998,5427027.4081000015],[-8850981.6466000006,5427057.3694000021],[-8850993.3449000008,5427090.8691999987],[-8851000.4813999999,5427121.0922000036],[-8851003.6645999998,5427150.8633999974],[-8851008.7832999993,5427181.8649000004],[-8851013.5840000007,5427213.5186000019],[-8851006.3855000008,5427239.7683999985],[-8850994.3347999994,5427261.5477000028],[-8850983.1272,5427285.5328999981],[-8850967.9913999997,5427290.3374999985],[-8850950.4777000006,5427292.5552000031],[-8850938.4531999994,5427308.4262999967],[-8850950.5645000003,5427325.4377000034],[-8850954.5756000001,5427342.8576999977],[-8850969.0089999996,5427358.9861999974],[-8850967.9348000009,5427368.1045999974],[-8850966.9791000001,5427376.2186999992],[-8850975.4829999991,5427395.7466000021],[-8850972.5398999993,5427417.0976999998],[-8850949.3602000009,5427425.5643000007],[-8850925.0035999995,5427431.0287000015],[-8850900.6461999994,5427429.314199999],[-8850879.7862,5427428.2775999978],[-8850861.5396999996,5427435.5458000004],[-8850842.1742000002,5427447.9677999988],[-8850818.5228000004,5427456.2507999986],[-8850797.1659999993,5427462.5926999971],[-8850788.1534000002,5427476.7990000024],[-8850783.7060000002,5427499.5349000022],[-8850779.7138999999,5427524.2836000025],[-8850775.9426000006,5427547.119599998],[-8850769.2683000006,5427569.7157000005],[-8850748.0962000005,5427618.8144999966],[-8850737.8007999994,5427648.1811999977],[-8850726.5236000009,5427673.9341999963],[-8850712.2877999991,5427697.9466999993],[-8850693.9737999998,5427721.8083000034],[-8850667.2813000008,5427732.0812000036],[-8850656.4594000001,5427754.9723000005],[-8850639.6799999997,5427798.5760999992],[-8850620.5778999999,5427807.5244999975],[-8850594.3958000001,5427805.8735999987],[-8850573.6892000008,5427820.8220999986],[-8850592.1173,5427833.8691999987],[-8850640.0320999995,5427858.2986999974],[-8850649.0677000005,5427876.9843999967],[-8850643.9397,5427885.6872999966],[-8850638.9169999994,5427894.7080999985],[-8850634.6874000002,5427900.8112000003],[-8850630.1941,5427909.8334000036],[-8850626.7580999993,5427916.7312999964],[-8850621.9990999997,5427921.7731999978],[-8850615.1250999998,5427930.7969999984],[-8850607.7228999995,5427937.1640999988],[-8850601.1143999994,5427943.0025999993],[-8850594.2400000002,5427947.2470000014],[-8850588.4245999996,5427950.1665000021],[-8850579.6993000004,5427953.3511999995],[-8850579.0800000001,5427953.5829999968],[-8850568.3293999992,5427957.5974000022],[-8850556.1702999994,5427961.8438000008],[-8850549.5600000005,5427964.7634000033],[-8850542.9509999994,5427969.5405000001],[-8850538.1933999993,5427974.5822999999],[-8850533.1701999996,5427980.4192999974],[-8850528.1469000001,5427985.7261999995],[-8850523.3879000004,5427993.686999999],[-8850517.3073999994,5428003.5041000023],[-8850512.5496999994,5428010.9350000024],[-8850508.5840000007,5428018.0980999991],[-8850504.3545999993,5428027.1215000004],[-8850501.1823999994,5428033.7533000037],[-8850495.8956000004,5428048.3469000012],[-8850493.2517000008,5428055.7762999982],[-8850489.8157000002,5428065.0632999986],[-8850485.3222000003,5428075.6765000001],[-8850481.8847000003,5428085.495099999],[-8850478.7127,5428094.2519999966],[-8850474.7485000007,5428102.2114999965],[-8850469.4806999993,5428111.2933999971],[-8850463.1208999995,5428121.3229999989],[-8850454.0370000005,5428138.6489000022],[-8850454.3399,5428140.7770999968],[-8850454.9460000005,5428146.5511000007],[-8850469.1895000003,5428255.6682000011],[-8850475.2492999993,5428281.5046000034],[-8850481.9152000006,5428313.7229000032],[-8850486.1566000003,5428331.6556999981],[-8850486.2064999994,5428352.2069000006]]]}";
        private static string geometry2 = "{\"rings\":[[[-8843218.6020999998,5428616.5234000012],[-8843183.1259000003,5428622.7409999967],[-8843146.7117999997,5428615.0830999985],[-8843111.2942999993,5428600.488499999],[-8843079.7717000004,5428580.3467999995],[-8843060.2216999996,5428552.5833000019],[-8843050.0084000006,5428517.1960999966],[-8843034.6087999996,5428485.9675000012],[-8843009.0343999993,5428482.4805999994],[-8842979.8771000002,5428474.8298000023],[-8842959.4651999995,5428444.9835999981],[-8842954.6989999991,5428406.8256999999],[-8842967.9883999992,5428374.2308000028],[-8842994.7937000003,5428349.9702999964],[-8843009.4630999994,5428319.4584000036],[-8843013.2475000005,5428283.3896000013],[-8842994.0475999992,5428251.4663999975],[-8842965.1190000009,5428227.1669000015],[-8842930.7773000002,5428220.2052000016],[-8842900.7435999997,5428229.2014999986],[-8842871.1405999996,5428240.2810000032],[-8842836.3180999998,5428240.9487999976],[-8842800.9793999996,5428236.7617999986],[-8842764.6081000008,5428229.1054999977],[-8842726.3804000001,5428218.6714999974],[-8842692.4798000008,5428201.3040999994],[-8842672.2807999998,5428175.623300001],[-8842663.0906000007,5428158.9685000032],[-8842645.9968999997,5428140.2282000035],[-8842629.5460000001,5428128.4222000018],[-8842620.0566000007,5428109.6884000003],[-8842596.2166000009,5428098.5713],[-8842566.5017000008,5428086.7586999983],[-8842537.2171999998,5428076.3308999985],[-8842518.0035999995,5428061.0565000027],[-8842521.8719999995,5428029.1528000012],[-8842517.5317000002,5427996.5494000018],[-8842494.6571999993,5427966.7065000013],[-8842465.9394000005,5427951.4248000011],[-8842439.1180000007,5427943.0803000033],[-8842412.8509,5427944.4464000016],[-8842384.3347999994,5427949.2788000032],[-8842354.0454999991,5427956.8853999972],[-8842324.9642999992,5427964.4902999997],[-8842300.5503000002,5427972.1002999991],[-8842275.4442999996,5427980.4032000005],[-8842256.6925000008,5427984.5495999977],[-8842249.2566999998,5427989.3989999965],[-8842221.6897999998,5427996.3123999983],[-8842195.7201000005,5428002.5336000025],[-8842167.6824999992,5428003.2036999986],[-8842141.8995999992,5427993.4725999981],[-8842137.5830000006,5427989.3056999967],[-8842119.6687000003,5427971.9496000037],[-8842109.8815000001,5427957.947800003],[-8842153.1263999995,5427942.8866000026],[-8842202.9102999996,5427925.5469999984],[-8842422.5089999996,5427857.7497999966],[-8842885.5376999993,5427712.4192000031],[-8842936.4834000003,5427697.8903999999],[-8842987.7304999996,5427683.3603999987],[-8843018.8368999995,5427678.5275999978],[-8843045.2342000008,5427676.4658999965],[-8843051.3263000008,5427676.4702999964],[-8843083.6868999992,5427674.7346000001],[-8843117.9386999998,5427669.3589000031],[-8843238.8056000005,5427635.5688000023],[-8843279.8083999995,5427624.639700003],[-8843376.6593999993,5427596.2584000006],[-8843572.2686999999,5427539.0935999975],[-8843606.1279000007,5427528.9679000005],[-8843862.7284999993,5427453.0406000018],[-8844119.2445,5427378.0516000018],[-8844155.3017999995,5427366.6987999976],[-8844357.7802000009,5427307.9827999994],[-8844547.1192000005,5427249.5647],[-8844864.9794999994,5427158.0522999987],[-8844866.6372999996,5427157.5746999979],[-8845085.0818000007,5427091.567400001],[-8845223.8109000009,5427051.2924000025],[-8845392.5640999991,5427002.3022999987],[-8845417.9580000006,5426994.5622999966],[-8845755.2649000008,5426893.4105999991],[-8845831.6228,5427345.5442000031],[-8845862.3140999991,5427527.3156000003],[-8845883.5227000006,5427650.0961000025],[-8845903.1185999997,5427779.6559000015],[-8845922.5241999999,5427905.5789000019],[-8845942.8629999999,5428029.7405999973],[-8845959.5468000006,5428130.4239000008],[-8845960.0044,5428136.7556999996],[-8845960.6690999996,5428143.7646000013],[-8845960.2884999998,5428147.9487000033],[-8845959.8311000001,5428150.6758000031],[-8845971.3816999998,5428215.1061000004],[-8845998.1536999997,5428295.2470000014],[-8845999.4842000008,5428329.8627000004],[-8846002.6493999995,5428377.7246000022],[-8846006.5746999998,5428419.6220000014],[-8846012.2466000002,5428460.616899997],[-8846013.6136000007,5428471.4283000007],[-8846016.9537000004,5428497.8364999965],[-8846020.9374000002,5428512.9734999985],[-8846026.3703000005,5428533.6220000014],[-8846026.9135999996,5428537.0838999972],[-8846081.1896000002,5428882.9341999963],[-8846128.7347999997,5429180.7329000011],[-8846143.3640999999,5429272.0596000031],[-8846217.9398999996,5429740.9152000025],[-8846297.9341000002,5430191.7672000006],[-8846301.6786000002,5430213.137000002],[-8846302.9892999995,5430220.6141000018],[-8846306.0261000004,5430237.9496999979],[-8846313.5324000008,5430281.2040000036],[-8846389.4401999991,5430718.568400003],[-8846462.0645000003,5431142.4908000007],[-8846539.8660000004,5431589.6498999968],[-8846564.5818000007,5431734.7674999982],[-8846568.3423999995,5431761.753200002],[-8846573.2305999994,5431796.5373999998],[-8846577.9087000005,5431830.6471000016],[-8846580.0167999994,5431865.3737000003],[-8846580.4473000001,5431880.431400001],[-8846580.0528999995,5431909.4570000023],[-8846576.5785000008,5432051.6068999991],[-8846575.8223999999,5432082.488499999],[-8846568.0437000003,5432400.6498999968],[-8846567.6951000001,5432455.9711999968],[-8846567.8322999999,5432506.3227000013],[-8846569.9160999991,5432582.5628999993],[-8846390.0580000002,5432631.315700002],[-8846242.3584000003,5432672.1983999982],[-8846212.3573000003,5432680.5022],[-8846203.5881999992,5432658.6608999968],[-8846195.0649999995,5432630.372299999],[-8846188.8109000009,5432600.3583000004],[-8846180.1894000005,5432575.4864000008],[-8846170.0998999998,5432555.4812000021],[-8846159.2355000004,5432537.1402999982],[-8846150.5821000002,5432523.8800999969],[-8846134.3587999996,5432521.6401999965],[-8846118.3302999996,5432516.5966000035],[-8846111.5606999993,5432496.3694000021],[-8846122.2732999995,5432477.998499997],[-8846140.4414000008,5432458.0438999981],[-8846144.6273999996,5432435.008100003],[-8846142.7149,5432408.6093999967],[-8846141.8540000003,5432382.4151000008],[-8846149.3290999997,5432362.7920000032],[-8846151.1765000001,5432345.9953999966],[-8846156.4551999997,5432322.9334999993],[-8846168.9375,5432305.946800001],[-8846185.7477000002,5432292.5731000006],[-8846211.8780000005,5432284.0317000002],[-8846234.7854999993,5432275.9954999983],[-8846245.6348000001,5432261.0788000003],[-8846247.0129000004,5432238.0791999996],[-8846259.2858000007,5432225.8514000028],[-8846284.1130999997,5432224.4184999987],[-8846300.3858000003,5432226.7035000026],[-8846313.1429999992,5432228.4957000017],[-8846339.2971000001,5432229.4758000001],[-8846365.1625999995,5432225.5062000006],[-8846388.0026999991,5432211.9113000035],[-8846398.3420000002,5432191.360799998],[-8846396.4820000008,5432171.1763999984],[-8846387.8179000001,5432149.1770000011],[-8846374.2153999992,5432129.4324999973],[-8846355.2452000007,5432113.311499998],[-8846340.4784999993,5432100.4135000035],[-8846323.2206999995,5432092.2585999966],[-8846309.3640000001,5432086.9971000031],[-8846299.8357999995,5432083.3791999966],[-8846275.7585000005,5432077.0270999968],[-8846254.3355999999,5432073.8571000025],[-8846233.2850000001,5432073.8334999979],[-8846213.3254000004,5432078.1741999984],[-8846191.9134,5432082.7695999965],[-8846168.0247000009,5432090.1316],[-8846146.0031000003,5432098.2049999982],[-8846125.4738999996,5432109.5197999999],[-8846107.6977999993,5432118.9355999976],[-8846085.7327999994,5432123.4807000011],[-8846061.3493000008,5432122.9126999974],[-8846040.3828999996,5432119.8088999987],[-8846018.0765000004,5432116.5948999971],[-8845996.2942999993,5432113.6423000023],[-8845973.7916000001,5432110.5018000007],[-8845951.5381000005,5432109.7807999998],[-8845930.6831,5432105.9820000008],[-8845911.4326000009,5432101.4355000034],[-8845889.6372999996,5432097.0851000026],[-8845869.5566000007,5432093.6875],[-8845845.7402999997,5432090.5270999968],[-8845823.9365999997,5432077.7352000028],[-8845805.8116999995,5432061.8818000033],[-8845797.1640000008,5432041.9461999983],[-8845795.0562999994,5432019.0018000007],[-8845793.4203999992,5431996.4642999992],[-8845788.1181000005,5431976.4179999977],[-8845781.7508000005,5431956.8332000002],[-8845774.4700000007,5431938.7444000021],[-8845762.4746000003,5431920.571800001],[-8845747.5692999996,5431909.2582999989],[-8845727.4495999999,5431902.0287000015],[-8845715.2179000005,5431883.4978],[-8845708.8786999993,5431863.2443000004],[-8845706.9517999999,5431841.8838],[-8845699.0362,5431820.8386000022],[-8845686.2642000001,5431804.3299999982],[-8845671.1390000004,5431792.6418000013],[-8845655.9979999997,5431782.5997999981],[-8845638.8980999999,5431770.9038000032],[-8845623.0684999991,5431755.0613999963],[-8845610.7128999997,5431736.4614000022],[-8845594.9683999997,5431719.5073999986],[-8845577.5786000006,5431701.5547000021],[-8845560.5892999992,5431685.1150000021],[-8845545.2053999994,5431666.2903999984],[-8845538.2874999996,5431643.6111000031],[-8845534.9449000005,5431631.610299997],[-8845532.3092999998,5431622.1523000002],[-8845519.9929000009,5431609.7522],[-8845501.0579000004,5431614.1979999989],[-8845486.9143000003,5431605.5773999989],[-8845472.2342000008,5431591.2292999998],[-8845455.5907000005,5431576.204400003],[-8845437.4948999994,5431561.4465999976],[-8845415.9277999997,5431547.3800000027],[-8845394.3592000008,5431536.6953999996],[-8845373.2289000005,5431534.7453999966],[-8845352.8136999998,5431538.0209999979],[-8845338.3432,5431550.5213999972],[-8845330.1867999993,5431572.1110000014],[-8845329.7536999993,5431572.737999998],[-8845317.1360999998,5431591.0349999964],[-8845304.5987999998,5431606.5077000037],[-8845291.1632000003,5431620.5311999992],[-8845273.4134,5431632.9968999997],[-8845256.1238000002,5431638.2084999979],[-8845248.3412999995,5431631.6678000018],[-8845252.5789000001,5431620.5503999963],[-8845259.2381999996,5431606.1226999983],[-8845261.3334999997,5431592.4130000025],[-8845255.5701000001,5431585.7625999972],[-8845243.3718999997,5431587.1292999983],[-8845227.8655999992,5431592.4083999991],[-8845213.9269999992,5431588.1050999984],[-8845212.1794000007,5431570.9491000026],[-8845216.3524999991,5431551.2116999999],[-8845206.1991000008,5431531.3334000036],[-8845203.1665000003,5431509.2391000018],[-8845208.9416000005,5431501.7585000023],[-8845207.1610000003,5431487.2590000033],[-8845214.5427999999,5431467.3347000033],[-8845214.0274,5431447.9148000032],[-8845196.0626999997,5431420.0960000008],[-8845178.7765999995,5431420.2669999972],[-8845160.1300000008,5431424.6159000024],[-8845146.6774000004,5431417.0918999985],[-8845146.3715000004,5431393.9818999991],[-8845144.9598999992,5431372.4591000006],[-8845141.6647999994,5431350.5662999973],[-8845138.8271999992,5431329.7215000018],[-8845131.1320999991,5431315.3828999996],[-8845098.5639999993,5431289.5987000018],[-8845082.9831000008,5431280.8990999982],[-8845076.2434999999,5431264.8263000026],[-8845075.7893000003,5431256.2634000033],[-8845076.1024999991,5431243.2180999964],[-8845080.1687000003,5431221.434299998],[-8845091.8921000008,5431204.4767000005],[-8845111.216,5431196.8408999965],[-8845129.8157000002,5431195.6979999989],[-8845149.1624999996,5431198.8897999972],[-8845165.7240999993,5431184.7268999964],[-8845173.1630000006,5431161.9541999996],[-8845178.7898999993,5431139.9856000021],[-8845196.1395999994,5431125.2334999964],[-8845211.6350999996,5431112.5125999972],[-8845224.4503000006,5431094.8774999976],[-8845232.6897999998,5431074.2344999984],[-8845233.1301000006,5431052.7674999982],[-8845240.7463000007,5431033.8686000034],[-8845252.5262000002,5431012.4073999971],[-8845263.3261999991,5430987.2114999965],[-8845276.1708000004,5430965.9575000033],[-8845294.8509999998,5430947.2699000016],[-8845392.1697000004,5430907.1598000005],[-8845418.5863000005,5430898.5433999971],[-8845441.1175999995,5430891.7236000001],[-8845468.5120999999,5430888.1253999993],[-8845492.7273999993,5430884.1592999995],[-8845507.4696999993,5430881.8611000031],[-8845521.8801000006,5430879.2296999991],[-8845553.7983999997,5430874.4826999977],[-8845586.8669000007,5430862.1480000019],[-8845604.4154000003,5430836.6089000031],[-8845616.5325000007,5430802.0168000013],[-8845630.4850999992,5430774.4930000007],[-8845645.6245000008,5430751.9307999983],[-8845670.4986000005,5430730.127700001],[-8845697.5023999996,5430707.8562000021],[-8845722.3621999994,5430686.3834000006],[-8845750.2921999991,5430663.2480999976],[-8845783.5160000008,5430645.052699998],[-8845818.1057999991,5430629.7053000033],[-8845855.3800000008,5430616.5486000031],[-8845892.7907999996,5430604.5357000008],[-8845924.9154000003,5430601.0367000028],[-8845959.1959000006,5430600.8883000016],[-8845990.6831999999,5430597.0363999978],[-8846000.9318000004,5430595.7832000032],[-8846039.4345999993,5430584.4051999971],[-8846076.7502999995,5430567.3910000026],[-8846105.6778999995,5430537.9306000024],[-8846116.9649999999,5430498.4672999978],[-8846113.5795000009,5430460.8462999985],[-8846102.1317999996,5430423.8906999975],[-8846090.0198999997,5430388.2452000007],[-8846076.1230999995,5430355.1578999981],[-8846072.9787000008,5430348.8372000009],[-8846060.7736000009,5430324.2932000011],[-8846049.2653000001,5430309.8875999972],[-8846041.3005999997,5430299.9211999997],[-8846014.7027000003,5430283.4477000013],[-8846000.1416999996,5430274.7691999972],[-8845990.6486000009,5430269.1066000015],[-8845966.0814999994,5430257.5516000018],[-8845938.0839000009,5430249.2006999999],[-8845907.4433999993,5430241.4895000011],[-8845871.0431999993,5430226.0261000022],[-8845840.2298000008,5430207.6574999988],[-8845809.0439999998,5430190.5056999996],[-8845783.5510000009,5430176.0789000019],[-8845777.8567999993,5430173.0223999992],[-8845758.0731000006,5430162.4125000015],[-8845728.0164000001,5430152.4365999997],[-8845699.9078000002,5430146.4134000018],[-8845672.8484000005,5430143.9899000004],[-8845651.4309,5430140.8153000027],[-8845634.4927999992,5430139.6850999966],[-8845617.5936999992,5430143.3409999982],[-8845603.2909999993,5430148.0178000033],[-8845601.2332000006,5430148.6898000017],[-8845579.1470999997,5430155.9108999968],[-8845554.3090000004,5430163.6942000017],[-8845530.8430000003,5430164.5742999986],[-8845505.7017000001,5430169.4069000036],[-8845481.8624000009,5430169.8674999997],[-8845456.1708000004,5430168.949500002],[-8845430.3664999995,5430169.4007000029],[-8845403.8029999994,5430172.8282999992],[-8845373.2835000008,5430176.2382000014],[-8845338.5753000006,5430177.4034999982],[-8845284.0360000003,5430151.7885000035],[-8845261.4813999999,5430129.6291999966],[-8845237.3716000002,5430118.1400000006],[-8845210.1155999992,5430124.8589999974],[-8845189.5855999999,5430144.9149999991],[-8845173.9077000003,5430164.7893000022],[-8845153.2433000002,5430177.0190000013],[-8845133.8659000006,5430186.8458999991],[-8845111.8718999997,5430200.0461999997],[-8845092.2335000001,5430211.7215000018],[-8845075.0109000001,5430223.1424999982],[-8845053.1835999992,5430235.1922999993],[-8845028.5327000003,5430230.7775000036],[-8845012.9328000005,5430208.8430000022],[-8845004.5002999995,5430180.5332000032],[-8845010.5844000001,5430151.2018000036],[-8845015.1676000003,5430131.1322000027],[-8845014.6363999993,5430123.7260999978],[-8845007.8552999999,5430110.5121999979],[-8845004.9149999991,5430098.4688000008],[-8844992.5658999998,5430074.4980000034],[-8844973.3694000002,5430053.6482999995],[-8844955.3253000006,5430029.2392999977],[-8844945.8399,5430003.0284999982],[-8844942.8397000004,5429976.3271000013],[-8844947.3198000006,5429950.1432000026],[-8844951.4946999997,5429925.7006999999],[-8844948.5767999999,5429897.5578999966],[-8844946.2291999999,5429868.4609000012],[-8844940.8793000001,5429840.2352000028],[-8844930.3418000005,5429816.1090999991],[-8844910.1000999995,5429813.8655000031],[-8844888.0832000002,5429821.6101000011],[-8844865.8858000003,5429830.8280000016],[-8844842.2830999997,5429832.9642999992],[-8844816.0640999991,5429835.5001000017],[-8844788.0227000006,5429835.0446000025],[-8844759.0135999992,5429834.6660000011],[-8844734.3173999991,5429836.494599998],[-8844709.5914999992,5429841.9514999986],[-8844682.6657999996,5429849.6494000033],[-8844655.8124000002,5429851.5332999974],[-8844629.8317000009,5429848.4127999991],[-8844612.4622000009,5429830.7915000021],[-8844605.5781999994,5429802.8571999967],[-8844597.5753000006,5429775.1736000031],[-8844589.3336999994,5429749.4117999971],[-8844575.2925000004,5429737.0556999967],[-8844549.9045000002,5429740.427199997],[-8844525.2985999994,5429752.2905000001],[-8844504.9637000002,5429769.2027999982],[-8844487.4481000006,5429788.4921000004],[-8844470.7215,5429808.4905999973],[-8844446.5843000002,5429824.4710000008],[-8844420.1420000009,5429833.0022],[-8844392.4744000006,5429829.6693999991],[-8844382.4374000002,5429807.7991999984],[-8844381.3627000004,5429774.2488999963],[-8844376.2486000005,5429746.7014999986],[-8844367.5540999994,5429719.9067000002],[-8844355.3989000004,5429695.5477000028],[-8844334.6262999997,5429681.5465999991],[-8844308.5341999996,5429680.1169999987],[-8844278.6698000003,5429677.7295000032],[-8844252.3195999991,5429667.4174000025],[-8844226.3602000009,5429652.9136999995],[-8844200.1948000006,5429636.4161000028],[-8844175.0530999992,5429617.3933999985],[-8844148.7909999993,5429603.9905999973],[-8844122.7854999993,5429598.0443999991],[-8844098.7748000007,5429586.199500002],[-8844076.2039000001,5429569.3953000009],[-8844053.1510000005,5429553.7254000008],[-8844029.3209000006,5429540.4070999995],[-8844012.1893000007,5429519.8623000011],[-8844012.0252,5429492.7889999971],[-8844004.3293999992,5429463.3564999998],[-8843987.1981000006,5429438.7589000016],[-8843961.5983000007,5429426.6711999997],[-8843936.0905000009,5429422.3132999986],[-8843907.7343000006,5429417.8953000009],[-8843881.8935000002,5429415.1745999977],[-8843878.5544000007,5429406.5738999993],[-8843876.7999000009,5429380.6345999986],[-8843888.4432999995,5429357.3737000003],[-8843878.6865999997,5429327.9649000019],[-8843874.9011000004,5429301.8484999985],[-8843875.3319000006,5429274.9201999977],[-8843862.3979000002,5429245.7885000035],[-8843846.3747000005,5429217.2233000025],[-8843838.5701000001,5429186.4152000025],[-8843830.9858999997,5429154.9706000015],[-8843831.6399000008,5429127.4157999977],[-8843833.3110000007,5429109.0496999994],[-8843833.1867999993,5429108.6596999988],[-8843832.9936999995,5429108.063000001],[-8843828.4390999991,5429095.3357999995],[-8843819.4913999997,5429077.1406999975],[-8843803.8430000003,5429051.0799999982],[-8843781.1870000008,5429019.2167000026],[-8843755.5974000003,5428995.4195000008],[-8843723.1570999995,5428980.0841000006],[-8843715.0699000005,5428976.262000002],[-8843709.9309999999,5428971.6674000025],[-8843689.4816999994,5428951.1893000007],[-8843667.7445,5428930.8466999978],[-8843642.6822999995,5428904.2531000003],[-8843622.1833999995,5428875.3659999967],[-8843601.2202000003,5428838.110799998],[-8843582.7320000008,5428801.6089999974],[-8843569.9558000006,5428762.6290000007],[-8843556.9842000008,5428727.2540000007],[-8843538.7972999997,5428696.2851999998],[-8843518.4386,5428665.6824000031],[-8843498.0156999994,5428632.2295000032],[-8843479.8589999992,5428599.2541999966],[-8843456.7200000007,5428575.1203999966],[-8843426.7382999994,5428562.877700001],[-8843395.3978000004,5428561.7990999967],[-8843366.0173000004,5428563.8612999991],[-8843330.0741000008,5428578.5719000027],[-8843294.8355,5428596.0305999964],[-8843263.3973999992,5428609.509800002],[-8843224.0209999997,5428615.5407999977],[-8843218.6020999998,5428616.5234000012]]]}";

        // Run this twice. The second time R1 will == R2
        public static async Task<bool> Test()
        {
            var r1 = await Request(geometry1);
            Debug.WriteLine(r1); // Should be count = 5459
            var r2 = await Request(geometry2);
            Debug.WriteLine(r2); //should be count = 4652
            if (r1 == r2)
            {
                Debugger.Break(); // This shouldn't happen unless the wrong thing is cached
                return false;
            }
            else
                return true;
        }
        private static async Task<string> Request(string geometry)
        {
            var url = "https://services5.arcgis.com/N82JbI5EYtAkuUKU/arcgis/rest/services/FeatureSetByName_iOS/FeatureServer/0/query";
            var queryParameters = new System.Collections.Generic.Dictionary<string, string>();
            queryParameters["f"] = "json";
            queryParameters["geometry"] = geometry;
            queryParameters["geometryType"] = "esriGeometryPolygon";
            queryParameters["inSR"] = "3857";
            queryParameters["spatialRel"] = "esriSpatialRelIntersects";
            queryParameters["returnCountOnly"] = "true";
            var request = new HttpRequestMessage(HttpMethod.Post, url) { Content = new FormUrlEncodedContent(queryParameters) };
            var msg = await client.SendAsync(request);
            return await msg.Content.ReadAsStringAsync();

        }
    }
}
```

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build] Tests passed on VSTS: simulator tests iOS. ✅

Tests passed on VSTS: simulator tests iOS.

🎉 All 108 tests passed 🎉

Pipeline on Agent XAMBOT-1109.Monterey'
Merge 2f2df7d into b8eb1c3

@mstefarov
Copy link

We tried the CI binaries with the reproducer and all our iOS unit tests, and everything looks good. The HTTP caching problem is no longer reproducible. Thank you!

@mandel-macaque mandel-macaque merged commit 1f1189f into main Apr 13, 2022
@mandel-macaque mandel-macaque deleted the donot-cache-post branch April 13, 2022 18:09
@mandel-macaque
Copy link
Member Author

/sudo backport d17-2

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Backport Job to branch d17-2 Created! The magic is happening here

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Hooray! Backport succeeded! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=6020619 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug If an issue is a bug or a pull request a bug fix enhancement The issue or pull request is an enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants