Skip to content

Commit d5ea8d4

Browse files
authored
fix(IP2Region): AddBootstrapBlazorIP2RegionService typo error (#620)
* refactor: 改用 TryAdd 注入 * chore: bump version 9.0.4 * refactor: 更新服务 * refactor: 精简命名空间 * chore: 更新类名
1 parent 5e009f9 commit d5ea8d4

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/BootstrapBlazor.IP2Region/BootstrapBlazor.IP2Region.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.3</Version>
4+
<Version>9.0.4</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

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

Lines changed: 4 additions & 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) BootstrapBlazor & Argo Zhang (argo@live.ca). 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

@@ -9,13 +9,13 @@ namespace Microsoft.Extensions.DependencyInjection;
99
/// <summary>
1010
/// BootstrapBlazor 服务扩展类
1111
/// </summary>
12-
public static class BootstrapBlazoIP2RegionExtensions
12+
public static class ServiceCollectionExtensions
1313
{
1414
/// <summary>
15-
/// 添加 AzureOpenAIService 服务
15+
/// 添加 IP2RegionService 服务
1616
/// </summary>
1717
/// <param name="services"></param>
18-
public static IServiceCollection AddBootstrapBlazorIP2RegionfService(this IServiceCollection services)
18+
public static IServiceCollection AddBootstrapBlazorIP2RegionService(this IServiceCollection services)
1919
{
2020
services.AddSingleton<IIpLocatorProvider, IP2RegionService>();
2121
#if NET8_0_OR_GREATER

0 commit comments

Comments
 (0)