Refactor: Remove ITokenProvider and SettingsTokenProvider; update StundePage layout and optimize dependency injection configuration.
This commit is contained in:
@@ -13,7 +13,7 @@ internal sealed class ApiClient : IApiClient {
|
||||
private readonly ApiOptions _options;
|
||||
private readonly IAppSettings _settings;
|
||||
|
||||
public ApiClient(HttpClient http, ApiOptions options, ITokenProvider tokenProvider, IAppSettings settings) {
|
||||
public ApiClient(HttpClient http, ApiOptions options, IAppSettings settings) {
|
||||
_http = http;
|
||||
_options = options;
|
||||
_settings = settings;
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
using Jugenddienst_Stunden.Interfaces;
|
||||
|
||||
namespace Jugenddienst_Stunden.Infrastructure;
|
||||
|
||||
internal sealed class SettingsTokenProvider : ITokenProvider {
|
||||
private readonly IAppSettings _settings;
|
||||
public SettingsTokenProvider(IAppSettings settings) => _settings = settings;
|
||||
|
||||
public string GetToken() => _settings.ApiKey;
|
||||
}
|
||||
Reference in New Issue
Block a user