feat(IHttpClientOptions): erstellt zur Abstraktion
This commit is contained in:
parent
85e5fc4018
commit
e44b2895c9
@ -0,0 +1,7 @@
|
|||||||
|
namespace DigitalData.Core.Abstractions.Client
|
||||||
|
{
|
||||||
|
public interface IHttpClientOptions
|
||||||
|
{
|
||||||
|
public string Uri { get; init; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,6 +1,6 @@
|
|||||||
namespace DigitalData.Core.Abstractions.Client
|
namespace DigitalData.Core.Abstractions.Client
|
||||||
{
|
{
|
||||||
public interface IHttpClientService<TClientOptions> : IBaseHttpClientService
|
public interface IHttpClientService<TClientOptions> : IBaseHttpClientService where TClientOptions : IHttpClientOptions
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user