Skip to content

Commit c486cb9

Browse files
committed
refactor: remove HttpClient service
1 parent 999eacc commit c486cb9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/BootstrapBlazor.AzureTranslator/Extensions/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
1+
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
// Website: https://www.blazor.zone or https://argozhang.github.io/
44

@@ -20,8 +20,6 @@ public static class ServiceCollectionExtensions
2020
public static IServiceCollection AddBootstrapBlazorAzureTranslator(this IServiceCollection services, Action<
2121
AzureTranslatorOption>? configOptions = null)
2222
{
23-
services.AddHttpClient();
24-
2523
services.AddSingleton<IAzureTranslatorService, AzureTranslatorService>();
2624
services.AddOptionsMonitor<AzureTranslatorOption>();
2725

0 commit comments

Comments
 (0)