Adding a nuget package for Kyoo.Common and adding an http client factory in the DI

This commit is contained in:
Zoe Roux 2020-01-19 01:05:55 +01:00
parent 3d79d41a60
commit 523c5a652e
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,15 @@
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>Kyoo.Common</Title>
<Authors>Anonymus Raccoon</Authors>
<Description>Base package to create plugins for Kyoo.</Description>
<PackageProjectUrl>https://github.com/AnonymusRaccoon/Kyoo</PackageProjectUrl>
<RepositoryUrl>https://github.com/AnonymusRaccoon/Kyoo</RepositoryUrl>
<Company>SDG</Company>
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup>
<ItemGroup>

View File

@ -30,6 +30,7 @@ namespace Kyoo
});
services.AddControllers().AddNewtonsoftJson();
services.AddHttpClient();
services.AddSingleton<ILibraryManager, LibraryManager>();
services.AddSingleton<ITranscoder, Transcoder>();