fix(ClientOptions): Die Eigenschaft „QueryStrings” in „DefaultQueryStrings” umbenennen.
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"AllowedHosts": "*",
|
||||
"EConnect": {
|
||||
"BaseAddress": "https://portal.demoportal01.leanetec.com",
|
||||
"QueryStrings": {
|
||||
"DefaultQueryStrings": {
|
||||
"apiKey": "HGpGp3vk3MsKgSe0tKVZ1ZRCuq6bFoJ1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user