Skip to content

Commit d983520

Browse files
authored
feat(IPinyinService): add IPinyinService interface (#6968)
* refactor: 增加拼音服务 * refactor: 增加 IPinyinService 服务 * feat: 增加 PinyinLetterCaseCategory 枚举类 * feat: 更新并实现 IPinService 接口 * test: 增加单元测试 * chore: bump version 9.11.5-beta01
1 parent f5eac6b commit d983520

File tree

6 files changed

+582
-1
lines changed

6 files changed

+582
-1
lines changed

src/BootstrapBlazor/BootstrapBlazor.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.11.4</Version>
4+
<Version>9.11.5-beta01</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Extensions/BootstrapBlazorServiceCollectionExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ public static IServiceCollection AddBootstrapBlazor(this IServiceCollection serv
8383
// 限流器服务
8484
services.TryAddSingleton<IThrottleDispatcherFactory, DefaultThrottleDispatcherFactory>();
8585

86+
// 汉字拼音服务
87+
services.TryAddSingleton<IPinyinService, DefaultPinyinService>();
88+
8689
services.TryAddScoped(typeof(IDataService<>), typeof(NullDataService<>));
8790
services.TryAddScoped<IReconnectorProvider, ReconnectorProvider>();
8891
services.TryAddScoped<IGeoLocationService, DefaultGeoLocationService>();

0 commit comments

Comments
 (0)