Skip to content

Commit 8be4fc0

Browse files
authored
feat(AzureTranslator): remove HttpClient service inject (#893)
* refactor: remove HttpClient service * chore: bump version 10.0.1
1 parent 999eacc commit 8be4fc0

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/components/BootstrapBlazor.AzureTranslator/BootstrapBlazor.AzureTranslator.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

3+
<PropertyGroup>
4+
<Version>10.0.1</Version>
5+
</PropertyGroup>
6+
37
<PropertyGroup>
48
<PackageTags>Bootstrap Blazor Azure WebAssembly wasm Translator Components</PackageTags>
59
<Description>Bootstrap UI components extensions of Azure Translator</Description>

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)