mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 03:50:08 -07:00
Updated to .net core 3.0
This commit is contained in:
parent
b07833e0e8
commit
379ffeddba
13 changed files with 66 additions and 163 deletions
|
@ -120,8 +120,8 @@ namespace Ombi.DependencyInjection
|
|||
|
||||
public static void RegisterApi(this IServiceCollection services)
|
||||
{
|
||||
services.AddSingleton<IApi, Api.Api>();
|
||||
services.AddSingleton<IOmbiHttpClient, OmbiHttpClient>(); // https://blogs.msdn.microsoft.com/alazarev/2017/12/29/disposable-finalizers-and-httpclient/
|
||||
services.AddScoped<IApi, Api.Api>();
|
||||
services.AddScoped<IOmbiHttpClient, OmbiHttpClient>(); // https://blogs.msdn.microsoft.com/alazarev/2017/12/29/disposable-finalizers-and-httpclient/
|
||||
services.AddTransient<IMovieDbApi, Api.TheMovieDb.TheMovieDbApi>();
|
||||
services.AddTransient<IPlexApi, PlexApi>();
|
||||
services.AddTransient<IEmbyApi, EmbyApi>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue