From 997fd533ac2b8f29634c1bd48ce19118b88c303c Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 25 Nov 2024 10:11:13 +0100 Subject: [PATCH] =?UTF-8?q?feat(BaseHttpClientService):=20Path=20getter=20?= =?UTF-8?q?und=20intter=20entfernt=20und=20gesch=C3=BCtzte=20readonly=20?= =?UTF-8?q?=5Fpath=20Variable=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DigitalData.Core.Client/BaseHttpClientService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DigitalData.Core.Client/BaseHttpClientService.cs b/DigitalData.Core.Client/BaseHttpClientService.cs index 6b8c4a7..f01987e 100644 --- a/DigitalData.Core.Client/BaseHttpClientService.cs +++ b/DigitalData.Core.Client/BaseHttpClientService.cs @@ -14,7 +14,7 @@ namespace DigitalData.Core.Client [StringSyntax("Uri")] protected readonly string _uri; - public string Path { get; init; } = string.Empty; + protected readonly string _path; protected IEnumerable>? _headers; @@ -25,7 +25,7 @@ namespace DigitalData.Core.Client _client = client; _cookies = cookieContainer; _uri = clientOptions.Value.Uri.Trim(URI_TRIM_CHARS); - Path = clientOptions.Value.Path.Trim(URI_TRIM_CHARS); + _path = clientOptions.Value.Path.Trim(URI_TRIM_CHARS); _headers = clientOptions.Value.Headers; _queryParams = clientOptions.Value.QueryParams; } @@ -70,7 +70,7 @@ namespace DigitalData.Core.Client uriBuilder.Scheme = scheme; if (port is int portInt) uriBuilder.Port = portInt; - uriBuilder.Path = UriCombine(Path, path?.Trim(URI_TRIM_CHARS) ?? string.Empty); + uriBuilder.Path = UriCombine(_path, path?.Trim(URI_TRIM_CHARS) ?? string.Empty); // Add query parameters if provided if (queryParams?.Any() ?? false)