From b615b1b6fdb2eebed2bc78aae06c0df433b547e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20BRUN-PICARD?= Date: Mon, 9 Dec 2024 10:54:11 +0100 Subject: [PATCH] [Sample] Upgrading Maui sample to .NET 9 --- .../Apizr.Sample.MAUI.csproj | 25 +++++++++---------- .../ViewModels/MainPageViewModel.cs | 1 - .../Apizr.Sample.MAUI/appsettings.json | 16 +----------- 3 files changed, 13 insertions(+), 29 deletions(-) diff --git a/Apizr/Samples/Apizr.Sample.MAUI/Apizr.Sample.MAUI.csproj b/Apizr/Samples/Apizr.Sample.MAUI/Apizr.Sample.MAUI.csproj index c8a69ef4..0ad8456e 100644 --- a/Apizr/Samples/Apizr.Sample.MAUI/Apizr.Sample.MAUI.csproj +++ b/Apizr/Samples/Apizr.Sample.MAUI/Apizr.Sample.MAUI.csproj @@ -1,9 +1,9 @@  - net8.0-android;net8.0-ios;net8.0-maccatalyst - $(TargetFrameworks);net8.0-windows10.0.19041 + net9.0-android;net9.0-ios;net9.0-maccatalyst + $(TargetFrameworks);net9.0-windows10.0.19041 - + Exe Apizr.Sample.MAUI true @@ -16,18 +16,18 @@ 1.0 1 - 11.0 - 13.1 - 27.0 + 15.0 + 15.0 + 21.0 10.0.17763.0 10.0.17763.0 6.5 - + Apple Development: Created via API (Z887M6WDP6) VS: WildCard Development - + SdkOnly @@ -80,14 +80,13 @@ - - + + - - - + + diff --git a/Apizr/Samples/Apizr.Sample.MAUI/ViewModels/MainPageViewModel.cs b/Apizr/Samples/Apizr.Sample.MAUI/ViewModels/MainPageViewModel.cs index 011bfa7b..668c7bb6 100644 --- a/Apizr/Samples/Apizr.Sample.MAUI/ViewModels/MainPageViewModel.cs +++ b/Apizr/Samples/Apizr.Sample.MAUI/ViewModels/MainPageViewModel.cs @@ -6,7 +6,6 @@ using Apizr.Sample.Models; using Apizr.Transferring.Managing; using Fusillade; -using IntelliJ.Lang.Annotations; using MediatR; using MetroLog.Maui; using ReactiveUI; diff --git a/Apizr/Samples/Apizr.Sample.MAUI/appsettings.json b/Apizr/Samples/Apizr.Sample.MAUI/appsettings.json index f96d7920..13e7f717 100644 --- a/Apizr/Samples/Apizr.Sample.MAUI/appsettings.json +++ b/Apizr/Samples/Apizr.Sample.MAUI/appsettings.json @@ -39,7 +39,7 @@ "ShouldInvalidateOnError": false } }, - "IReqResUserService": { + "IReqResService": { "Caching": { "Mode": "FetchOrGet", "LifeSpan": "00:12:00", @@ -49,20 +49,6 @@ "HttpGet": [ "TestPipeline3" ] } }, - "IReqResSimpleService": { - "BaseAddress": "https://reqres.in/api", - "RequestTimeout": "00:00:03", - "Headers": [ - "testSettingsKey2: testSettingsValue2.1", - "testSettingsKey3: *testSettingsValue3.1*", - "testSettingsKey4: {0}", - "testSettingsKey5: *{0}*" - ], - "ResiliencePipelineOptions": { - "HttpGet": [ "TestPipeline3" ] - } - //"ResiliencePipelineKeys": [ "TestPipeline3" ] - }, "IHttpBinService": { "BaseAddress": "https://httpbin.org", "RequestTimeout": "00:00:04",