Set the default basedOnClientName

pull/11067/head
Cody Robibero 1 year ago
parent 0b62471828
commit 07140142fb

@ -290,7 +290,7 @@ namespace Emby.Server.Implementations
public void AddPluginHttpClient<T>(
IServiceCollection serviceCollection,
string basedOnClientName,
(string Name, string[] Values)[] customHeaders = null)
(string Name, string[] Values)[] customHeaders)
where T : BasePlugin
{
ArgumentNullException.ThrowIfNull(serviceCollection);

@ -4,6 +4,7 @@
using System.Net;
using MediaBrowser.Common;
using MediaBrowser.Common.Net;
using MediaBrowser.Common.Plugins;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
@ -98,7 +99,7 @@ namespace MediaBrowser.Controller
/// <typeparam name="T">The plugin type.</typeparam>
void AddPluginHttpClient<T>(
IServiceCollection serviceCollection,
string basedOnClientName,
string basedOnClientName = nameof(NamedClient.Default),
(string Name, string[] Values)[] customHeaders = null)
where T : BasePlugin;
}

Loading…
Cancel
Save