fix(ClientOptions): Die Eigenschaft „QueryStrings” in „DefaultQueryStrings” umbenennen.

This commit is contained in:
2025-08-15 12:33:33 +02:00
parent aa192626c2
commit 57b273cde4
4 changed files with 7 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ public class ClientOptions
public TimeSpan? Timeout { get; set; }
public Dictionary<string, string?>? QueryStrings { get; set; }
public Dictionary<string, string?>? DefaultQueryStrings { get; set; }
public Action<HttpClient>? AfterHttpInit { get; set; }
}

View File

@@ -1,5 +1,4 @@
using Leanetec.EConnect.Client;
using Leanetec.EConnect.Client.Interface;
using Leanetec.EConnect.Client.Interface;
using Leanetec.EConnect.Domain.Entities;
using Microsoft.Extensions.Options;
using System.Net.Http.Json;
@@ -24,8 +23,8 @@ public class EConnectClient<TError> : IEConnectClient<TError> where TError : cl
where TData : class
{
// add global query strings
if (_options.QueryStrings is not null)
route = route.AddQueryString(_options.QueryStrings);
if (_options.DefaultQueryStrings is not null)
route = route.AddQueryString(_options.DefaultQueryStrings);
// add query strings
if (queryParams is not null)
@@ -49,8 +48,8 @@ public class EConnectClient<TError> : IEConnectClient<TError> where TError : cl
where TData : class
{
// add global query strings
if (_options.QueryStrings is not null)
route = route.AddQueryString(_options.QueryStrings);
if (_options.DefaultQueryStrings is not null)
route = route.AddQueryString(_options.DefaultQueryStrings);
// add query strings
if (queryParams is not null)

View File

@@ -10,10 +10,6 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>
<ItemGroup>
<Folder Include="Controllers\NewFolder\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Leanetec.EConnect.Client\Leanetec.EConnect.Client.csproj" />
<ProjectReference Include="..\Leanetec.EConnect.Infrastructure\Leanetec.EConnect.Infrastructure.csproj" />

View File

@@ -8,7 +8,7 @@
"AllowedHosts": "*",
"EConnect": {
"BaseAddress": "https://portal.demoportal01.leanetec.com",
"QueryStrings": {
"DefaultQueryStrings": {
"apiKey": "HGpGp3vk3MsKgSe0tKVZ1ZRCuq6bFoJ1"
}
}