Skip to content

Commit 03efecf

Browse files
committed
refactor: 移除 HttpClient MemoryCache 依赖
1 parent 3dec210 commit 03efecf

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/components/BootstrapBlazor.BaiduSpeech/Extensions/ServiceCollectionExtension.cs

Lines changed: 1 addition & 4 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

@@ -21,9 +21,6 @@ public static class ServiceCollectionExtension
2121
public static IServiceCollection AddBootstrapBlazorBaiduSpeech(this IServiceCollection services, Action<
2222
BaiduSpeechOption>? configOptions = null)
2323
{
24-
services.AddHttpClient();
25-
services.AddMemoryCache();
26-
2724
services.TryAddScoped<RecognizerService>();
2825
services.AddScoped<IRecognizerProvider, BaiduRecognizerProvider>();
2926

0 commit comments

Comments
 (0)