chore: hochgestuft auf 2.1
This commit is contained in:
parent
48afa6b433
commit
c466c553dc
@ -2,6 +2,6 @@
|
|||||||
{
|
{
|
||||||
public interface IHttpClientOptions
|
public interface IHttpClientOptions
|
||||||
{
|
{
|
||||||
public string Uri { get; init; }
|
public string Uri { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -16,9 +16,10 @@
|
|||||||
<PackageProjectUrl></PackageProjectUrl>
|
<PackageProjectUrl></PackageProjectUrl>
|
||||||
<RepositoryUrl>http://git.dd:3000/AppStd/WebCoreModules.git</RepositoryUrl>
|
<RepositoryUrl>http://git.dd:3000/AppStd/WebCoreModules.git</RepositoryUrl>
|
||||||
<PackAsTool>False</PackAsTool>
|
<PackAsTool>False</PackAsTool>
|
||||||
<NeutralLanguage>aa-DJ</NeutralLanguage>
|
|
||||||
<PackageIcon>core_icon.png</PackageIcon>
|
<PackageIcon>core_icon.png</PackageIcon>
|
||||||
<Version>2.0.0.0</Version>
|
<Version>2.1.0.0</Version>
|
||||||
|
<AssemblyVersion>2.1.0.0</AssemblyVersion>
|
||||||
|
<FileVersion>2.1.0.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -4,6 +4,6 @@ namespace DigitalData.Core.Client
|
|||||||
{
|
{
|
||||||
public class HttpClientOptions : IHttpClientOptions
|
public class HttpClientOptions : IHttpClientOptions
|
||||||
{
|
{
|
||||||
public string Uri { get; init; } = string.Empty;
|
public string Uri { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -19,7 +19,7 @@ namespace DigitalData.Core.Client
|
|||||||
|
|
||||||
public static T Provide<T>() where T : notnull => _lazyProvider.Value.GetRequiredService<T>();
|
public static T Provide<T>() where T : notnull => _lazyProvider.Value.GetRequiredService<T>();
|
||||||
|
|
||||||
public static IHttpClientService<TOptions> ProvideHttpClientService<TOptions>() where TOptions : notnull
|
public static IHttpClientService<TOptions> ProvideHttpClientService<TOptions>() where TOptions : IHttpClientOptions
|
||||||
=> _lazyProvider.Value.GetRequiredService<IHttpClientService<TOptions>>();
|
=> _lazyProvider.Value.GetRequiredService<IHttpClientService<TOptions>>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user