From 5422ef3830166e0e9da1469e012c2edab9f94f5d Mon Sep 17 00:00:00 2001 From: Adam Nagy Date: Fri, 17 Feb 2023 09:00:33 +0000 Subject: [PATCH] Upgrade nuget packages to latest --- forgesample/Controllers/DesignAutomationController.cs | 4 ++-- forgesample/Startup.cs | 2 +- forgesample/forgesample.csproj | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/forgesample/Controllers/DesignAutomationController.cs b/forgesample/Controllers/DesignAutomationController.cs index 0672eb6..8f0846f 100644 --- a/forgesample/Controllers/DesignAutomationController.cs +++ b/forgesample/Controllers/DesignAutomationController.cs @@ -296,12 +296,12 @@ public async Task CreateAppBundle([FromBody]JObject appBundleSpec // upload the zip with .bundle RestClient uploadClient = new RestClient(newAppVersion.UploadParameters.EndpointURL); - RestRequest request = new RestRequest(string.Empty, Method.POST); + RestRequest request = new RestRequest(string.Empty, Method.Post); request.AlwaysMultipartFormData = true; foreach (KeyValuePair x in newAppVersion.UploadParameters.FormData) request.AddParameter(x.Key, x.Value); request.AddFile("file", packageZipPath); request.AddHeader("Cache-Control", "no-cache"); - await uploadClient.ExecuteTaskAsync(request); + await uploadClient.ExecuteAsync(request); return Ok(new { AppBundle = QualifiedBundleActivityName, Version = newAppVersion.Version }); } diff --git a/forgesample/Startup.cs b/forgesample/Startup.cs index 913785e..4e3e18d 100644 --- a/forgesample/Startup.cs +++ b/forgesample/Startup.cs @@ -22,7 +22,7 @@ public void ConfigureServices(IServiceCollection services) options.EnableEndpointRouting = false; //options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Stream))); options.InputFormatters.Insert(0, new RawRequestBodyFormatter()); - }).SetCompatibilityVersion(CompatibilityVersion.Version_3_0).AddNewtonsoftJson(); + }).AddNewtonsoftJson(); services.AddSignalR(); } diff --git a/forgesample/forgesample.csproj b/forgesample/forgesample.csproj index 79c8da9..8bc6157 100644 --- a/forgesample/forgesample.csproj +++ b/forgesample/forgesample.csproj @@ -6,8 +6,8 @@ - - - + + + \ No newline at end of file