feat(IHttpClientOptions): erstellt zur Abstraktion

This commit is contained in:
Developer 02 2024-11-22 09:18:19 +01:00
parent 85e5fc4018
commit e44b2895c9
3 changed files with 14 additions and 5 deletions

View File

@ -0,0 +1,7 @@
namespace DigitalData.Core.Abstractions.Client
{
public interface IHttpClientOptions
{
public string Uri { get; init; }
}
}

View File

@ -1,6 +1,6 @@
namespace DigitalData.Core.Abstractions.Client
{
public interface IHttpClientService<TClientOptions> : IBaseHttpClientService
public interface IHttpClientService<TClientOptions> : IBaseHttpClientService where TClientOptions : IHttpClientOptions
{
}
}

View File

@ -1,7 +1,9 @@
namespace DigitalData.Core.Client
using DigitalData.Core.Abstractions.Client;
namespace DigitalData.Core.Client
{
public class HttpClientOptions
public class HttpClientOptions : IHttpClientOptions
{
public string Uri { get; set; } = string.Empty;
public string Uri { get; init; } = string.Empty;
}
}
}