// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.SignalR.Client { /// /// Extension methods for . /// public static class HubConnectionBuilderExtensions { /// /// Adds a delegate for configuring the provided . This may be called multiple times. /// /// The to configure. /// The delegate that configures the . /// The same instance of the for chaining. public static IHubConnectionBuilder ConfigureLogging(this IHubConnectionBuilder hubConnectionBuilder, Action configureLogging) { hubConnectionBuilder.Services.AddLogging(configureLogging); return hubConnectionBuilder; } } }