diff --git a/src/Turnierplan.Adapter/TurnierplanClient.cs b/src/Turnierplan.Adapter/TurnierplanClient.cs index 700b67b4..e469b8b3 100644 --- a/src/Turnierplan.Adapter/TurnierplanClient.cs +++ b/src/Turnierplan.Adapter/TurnierplanClient.cs @@ -39,13 +39,13 @@ public sealed class TurnierplanClient : IDisposable /// public TurnierplanClient(HttpClient httpClient, TurnierplanClientOptions options) { - ArgumentException.ThrowIfNullOrWhiteSpace(options.ApiKey); + ArgumentException.ThrowIfNullOrWhiteSpace(options.ApiKeyId); ArgumentException.ThrowIfNullOrWhiteSpace(options.ApiKeySecret); _httpClient = httpClient; _httpClient.BaseAddress = options.ApplicationUri; - _httpClient.DefaultRequestHeaders.Add(ApiKeyIdHeaderName, options.ApiKey); + _httpClient.DefaultRequestHeaders.Add(ApiKeyIdHeaderName, options.ApiKeyId); _httpClient.DefaultRequestHeaders.Add(ApiKeySecretHeaderName, options.ApiKeySecret); } diff --git a/src/Turnierplan.Adapter/TurnierplanClientOptions.cs b/src/Turnierplan.Adapter/TurnierplanClientOptions.cs index 4b2fdd8d..b93c9cfc 100644 --- a/src/Turnierplan.Adapter/TurnierplanClientOptions.cs +++ b/src/Turnierplan.Adapter/TurnierplanClientOptions.cs @@ -9,12 +9,12 @@ public sealed record TurnierplanClientOptions /// Initializes a new instance of the class with the specified options. /// /// The base URI of the turnierplan.NET instance that should be queried. - /// The id of the API key. + /// The id of the API key. /// The secret of the API key. - public TurnierplanClientOptions(Uri applicationUri, string apiKey, string apiKeySecret) + public TurnierplanClientOptions(Uri applicationUri, string apiKeyId, string apiKeySecret) { ApplicationUri = applicationUri; - ApiKey = apiKey; + ApiKeyId = apiKeyId; ApiKeySecret = apiKeySecret; } @@ -22,10 +22,10 @@ public TurnierplanClientOptions(Uri applicationUri, string apiKey, string apiKey /// Initializes a new instance of the class with the specified options. /// /// The base URI of the turnierplan.NET instance that should be queried. - /// The id of the API key. + /// The id of the API key. /// The secret of the API key. - public TurnierplanClientOptions(string applicationUri, string apiKey, string apiKeySecret) - : this(new Uri(applicationUri), apiKey, apiKeySecret) + public TurnierplanClientOptions(string applicationUri, string apiKeyId, string apiKeySecret) + : this(new Uri(applicationUri), apiKeyId, apiKeySecret) { } @@ -37,7 +37,7 @@ public TurnierplanClientOptions(string applicationUri, string apiKey, string api /// /// The id of the API key. /// - public string ApiKey { get; } + public string ApiKeyId { get; } /// /// The secret of the API key.