diff --git a/src/BootstrapBlazor.Server/Extensions/ServicesExtensions.cs b/src/BootstrapBlazor.Server/Extensions/ServicesExtensions.cs index c41437445ff..8d8d72ed06a 100644 --- a/src/BootstrapBlazor.Server/Extensions/ServicesExtensions.cs +++ b/src/BootstrapBlazor.Server/Extensions/ServicesExtensions.cs @@ -64,7 +64,7 @@ void Invoke(BootstrapBlazorOptions option) // 增加 AzureTranslator 服务 services.AddBootstrapBlazorAzureTranslator(); - // 增加 Pdf 导出服务 + // 增加 Html2Pdf 导出服务 services.AddBootstrapBlazorHtml2PdfService(); // 配置 Tab 与 Menu 联动字典 diff --git a/src/Extensions/Components/BootstrapBlazor.TableExport/BootstrapBlazor.TableExport.csproj b/src/Extensions/Components/BootstrapBlazor.TableExport/BootstrapBlazor.TableExport.csproj index 692f54c9c9b..fb7a2d3339f 100644 --- a/src/Extensions/Components/BootstrapBlazor.TableExport/BootstrapBlazor.TableExport.csproj +++ b/src/Extensions/Components/BootstrapBlazor.TableExport/BootstrapBlazor.TableExport.csproj @@ -1,7 +1,7 @@ - 8.0.1-beta01 + 8.0.1-beta02 diff --git a/src/Extensions/Components/BootstrapBlazor.TableExport/TableExportServiceCollectionExtensions.cs b/src/Extensions/Components/BootstrapBlazor.TableExport/Extensions/TableExportServiceCollectionExtensions.cs similarity index 84% rename from src/Extensions/Components/BootstrapBlazor.TableExport/TableExportServiceCollectionExtensions.cs rename to src/Extensions/Components/BootstrapBlazor.TableExport/Extensions/TableExportServiceCollectionExtensions.cs index 8c71003ee15..a952641d880 100644 --- a/src/Extensions/Components/BootstrapBlazor.TableExport/TableExportServiceCollectionExtensions.cs +++ b/src/Extensions/Components/BootstrapBlazor.TableExport/Extensions/TableExportServiceCollectionExtensions.cs @@ -2,6 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ +using Microsoft.Extensions.DependencyInjection.Extensions; + namespace Microsoft.Extensions.DependencyInjection; /// @@ -16,7 +18,7 @@ public static class TableExportServiceCollectionExtensions /// public static IServiceCollection AddBootstrapBlazorTableExcelExport(this IServiceCollection services) { - services.AddTransient(); + services.TryAddTransient(); return services; } } diff --git a/src/Extensions/Components/BootstrapBlazor.TableExport/DefaultTableExport.cs b/src/Extensions/Components/BootstrapBlazor.TableExport/Services/DefaultTableExport.cs similarity index 100% rename from src/Extensions/Components/BootstrapBlazor.TableExport/DefaultTableExport.cs rename to src/Extensions/Components/BootstrapBlazor.TableExport/Services/DefaultTableExport.cs