From aa3f3bf904b7a520f6314e0a430cfaaf317a6e54 Mon Sep 17 00:00:00 2001 From: Scott Lyons Date: Tue, 29 Oct 2024 14:22:44 -0700 Subject: [PATCH] Updating GRPC libraries and `netstandard` (#10) * Bumping netstandard to 2.1 * Updating GRPC packages --- Spice/Spice.csproj | 11 +++++++---- Spice/src/Flight/SpiceFlightClient.cs | 3 +-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Spice/Spice.csproj b/Spice/Spice.csproj index f8e3202..53105f3 100644 --- a/Spice/Spice.csproj +++ b/Spice/Spice.csproj @@ -8,13 +8,16 @@ SpiceAI Dotnet SDK SpiceAI OSS enable - netstandard2.0;net6.0 + netstandard2.1;net6.0 - - - + + + + + + <_Parameter1>SpiceTest diff --git a/Spice/src/Flight/SpiceFlightClient.cs b/Spice/src/Flight/SpiceFlightClient.cs index 843c478..b13b70b 100644 --- a/Spice/src/Flight/SpiceFlightClient.cs +++ b/Spice/src/Flight/SpiceFlightClient.cs @@ -51,10 +51,9 @@ private static GrpcChannelOptions GetGrpcChannelOptions(string? appId, string? a DefaultRequestHeaders = { Authorization = AuthHeaderBuilder.BasicAuth(appId, apiKey) - } }; - + options.HttpClient.DefaultRequestHeaders.Add("X-Spice-User-Agent", UserAgent.agent()); return options;